20 stars to whomever can figure this one out ;-)
I have a table with assembly numbers and model codes, like this:
Assy Model Code
70360-RAB-02 AST35AFG2170ADFASDF324
34850-LRQ-04 HYLWP350JLGJEO70235GAS
72389-DAE-02 SDGHHPOEWYTHWETIPOPI67
These are just examples, the real data is proprietary...
each model code is 32 characters or so
There are hundreds of records like this.
Then I have a table of parts. It lists the part code, description, quantity, and the test for what model code it belongs to.
The test is in a format like this:
1. (15-2)
2. (15-1|15-2)
3. (12,13-B8&15-2&16,17-24)
and they get even more complex...
This is from a very old paradox database, which apparently used statements like this.
Anyway, what the tests mean is something like this:
1. If the model code has a 2 in the 15th place this part is included
2. If it has a 1 or a 2 in the 15th place this part is included
3. If the 12th and 13th places are B8 and the 15th is 2 and the 16th and 17th are 24 then include this part.
is there any way I can get this to work in access? I assume I will have to make a script to change it into legal 'if' statements, and then find some way to make a query that will use these if statements.
All I want to happen is for the user to type in an assembly number in my form, and it will show them what parts are in that assembly. The form is to view information only.
The parts table is over 500,000 records long, so making a script that loops through record-by-record for each search really isn't much of an option.
Any ideas or suggestions are more then welcome.
Thanks!
-Brad
I have a table with assembly numbers and model codes, like this:
Assy Model Code
70360-RAB-02 AST35AFG2170ADFASDF324
34850-LRQ-04 HYLWP350JLGJEO70235GAS
72389-DAE-02 SDGHHPOEWYTHWETIPOPI67
These are just examples, the real data is proprietary...
each model code is 32 characters or so
There are hundreds of records like this.
Then I have a table of parts. It lists the part code, description, quantity, and the test for what model code it belongs to.
The test is in a format like this:
1. (15-2)
2. (15-1|15-2)
3. (12,13-B8&15-2&16,17-24)
and they get even more complex...
This is from a very old paradox database, which apparently used statements like this.
Anyway, what the tests mean is something like this:
1. If the model code has a 2 in the 15th place this part is included
2. If it has a 1 or a 2 in the 15th place this part is included
3. If the 12th and 13th places are B8 and the 15th is 2 and the 16th and 17th are 24 then include this part.
is there any way I can get this to work in access? I assume I will have to make a script to change it into legal 'if' statements, and then find some way to make a query that will use these if statements.
All I want to happen is for the user to type in an assembly number in my form, and it will show them what parts are in that assembly. The form is to view information only.
The parts table is over 500,000 records long, so making a script that loops through record-by-record for each search really isn't much of an option.
Any ideas or suggestions are more then welcome.
Thanks!
-Brad