Is it possible to to do an inner join from a field in one
table to part of a field in another table. For example:
Select * From table1 Inner Join table2 On table1.Field1 =
Right(table2.Field1,4);
I've been trying this after giving up on a Dlookup
function to find the field of a value for running an
append query. For example:
SQLtxt = "INSERT INTO table1 ( lngSiteID, intYear)" & _
" SELECT DLookUp('[lngIDSite]','tblMonitorSites','Right
([lngAIRScode],4) = table2.[Field5]') AS Expr1, Field11" &
_ " FROM table2;"
DoCmd.RunSQL SQLtxt
I cannot get the table2.[Field5] reference in the Dlookup
statement to work properly.
Any help with either of these is appreciated.