SetBuilder
Programmer
I have 2 tables (Bill of Materials) in Access. Field1 in TableA is 50 characters long, Field1 in TableB is 25 characters long.
I am trying to match field1 in tableA to field1 in tableB. If I use the ADOX command .find, I can't get a match. They do match if I use a query, but I am trying to look at each component of a bill-of-material, so I need to see the differences between the two bills.
I have tried using a trim command to delete the trailing blanks, but that didn't work:
For example:
1. table1_Hold = Trim(rst1!fparent)
2. mySQLStringAccess = "trim(KitNum) = " & "'" & table1_Hold & "'"
3. .Find mySQLStringAccess, 0
where line #1 is setting the argument for the find in line taking the kit number (called 'fparent') from tableA;
where line #2 is building of the sql compare string taking the kit number from tableB;
where line #3 is the actual find that fails to find the matching kit.
A direct compare did not work either.
I am trying to match field1 in tableA to field1 in tableB. If I use the ADOX command .find, I can't get a match. They do match if I use a query, but I am trying to look at each component of a bill-of-material, so I need to see the differences between the two bills.
I have tried using a trim command to delete the trailing blanks, but that didn't work:
For example:
1. table1_Hold = Trim(rst1!fparent)
2. mySQLStringAccess = "trim(KitNum) = " & "'" & table1_Hold & "'"
3. .Find mySQLStringAccess, 0
where line #1 is setting the argument for the find in line taking the kit number (called 'fparent') from tableA;
where line #2 is building of the sql compare string taking the kit number from tableB;
where line #3 is the actual find that fails to find the matching kit.
A direct compare did not work either.