S
Steve_A
I am using Access 2007 and trying to join two tables by matching a partial
field on one of them.
Problem seems to be that if the RonsList.[Dwg Number] does not have a dash
(-) it will not find the partial match
Table name: RonsList
Field name: Dwg Number
Format as text: 779-302080
Table name: OPT09
Field name: Part Num
Format as text: 779-302080-1
779-302080-1-802
779-302080-1-804
SQL
SELECT RonsList.[Dwg Number], OPT09.[Part Num]
FROM RonsList LEFT JOIN OPT09 ON RonsList.[Dwg Number] Like OPT09.[Part Num]
& "*";
Dwg Number should match Part Numbers
779-302080 779-302080-1
779-302080-1-802
779-302080-1-804
148t3000-203 does match 148t3000-20
148t3000-204
148t3000-205
148t3000-207
field on one of them.
Problem seems to be that if the RonsList.[Dwg Number] does not have a dash
(-) it will not find the partial match
Table name: RonsList
Field name: Dwg Number
Format as text: 779-302080
Table name: OPT09
Field name: Part Num
Format as text: 779-302080-1
779-302080-1-802
779-302080-1-804
SQL
SELECT RonsList.[Dwg Number], OPT09.[Part Num]
FROM RonsList LEFT JOIN OPT09 ON RonsList.[Dwg Number] Like OPT09.[Part Num]
& "*";
Dwg Number should match Part Numbers
779-302080 779-302080-1
779-302080-1-802
779-302080-1-804
148t3000-203 does match 148t3000-20
148t3000-204
148t3000-205
148t3000-207