The format function will just change the number to a string so that the Left function will work on it. Also, I made the assumption that t2 contained the first 5 digits from T1. If that isn't the case then let us know and we can get you the appropriate function to match what you want. One alternative would be:
table1 Inner Join table2 On InStr(Format(table1.T1), Format(table2.t2)) <> 0
This will match if t2 is anywhere in T1. But that may get you matches that you don't want. It just depends on exactly how the two fields are related.
hth
Jeff Bridgham
Purdue University
Graduate School
Data Analyst
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.