D
David Kennedy
Hi,
I have a table with 3 fields(manufacturer name,part number and competitor
part number)
and over 50000 records for example:
MfrName MfrPN CompPN
AA 123..01 X231
AA A456 C999
AA 101 X231
AA 12....999 OA88
AA 999 OA88
-the first MfrPN has 123..01 and its CompPN is X231
this means that both 123 and 101 are the same as ComPN X231
-however the third record shows that 101 is the same as ComPN X231
-the same applies for MfrPN 12..999
-What I need is a piece of code to chop off the ..01 ....999 or whatever
if the number is found elsewhere in the table and has the same CompPN
-there may be a case where the ..01 etc doesnt exist and will need to be
added
to the table.
Can someone help me with this?
any help would be greatly appreciated
Thanks
David K
I have a table with 3 fields(manufacturer name,part number and competitor
part number)
and over 50000 records for example:
MfrName MfrPN CompPN
AA 123..01 X231
AA A456 C999
AA 101 X231
AA 12....999 OA88
AA 999 OA88
-the first MfrPN has 123..01 and its CompPN is X231
this means that both 123 and 101 are the same as ComPN X231
-however the third record shows that 101 is the same as ComPN X231
-the same applies for MfrPN 12..999
-What I need is a piece of code to chop off the ..01 ....999 or whatever
if the number is found elsewhere in the table and has the same CompPN
-there may be a case where the ..01 etc doesnt exist and will need to be
added
to the table.
Can someone help me with this?
any help would be greatly appreciated
Thanks
David K