Hi,
its been awhile since I used Access jet engine. I'm having a problem with the following query. I set it up how I normally do using other databases, but it returns zero results when I try to run it in access.
I want to get the values from the temp table that do not exist in the site table. Not sure what I'm doing wrong:
its been awhile since I used Access jet engine. I'm having a problem with the following query. I set it up how I normally do using other databases, but it returns zero results when I try to run it in access.
I want to get the values from the temp table that do not exist in the site table. Not sure what I'm doing wrong:
Code:
strSQL = "SELECT "
strSQL = strSQL & "DISTINCT tmp.Rec_ID, tmp.[Site ID]"
strSQL = strSQL & " FROM tmpExcelUpload tmp WHERE tmp.[Site ID] NOT IN(SELECT [tblSite-type].[Site ID] FROM [tblSite-type])"