Jordan2000
Registered User.
- Local time
- Today, 19:07
- Joined
- Nov 4, 2004
- Messages
- 24
I' m trying to compare a value in the import table against a value in a other table to check if this dealer is already is imported.
AantalRec = aantal("Tmp_Import")
MsgBox (AantalRec)
For i = 1 To AantalRec
SQLQ1 = "SELECT Tmp_Import.[Dealernummer Vestiging]FROM TblDealer INNER JOIN Tmp_Import ON TblDealer.[Dealernummer Vestiging] = Tmp_Import.[Dealernummer Vestiging] WHERE ((Not (Tmp_Import.[Dealernummer Vestiging])=[TblDealer]![Dealernummer Vestiging]));"
Set rs = CurrentDb.OpenRecordset(SQLQ1)
MsgBox rs
But this is not giving anything only a error.
like Type are not the same ..
AantalRec = aantal("Tmp_Import")
MsgBox (AantalRec)
For i = 1 To AantalRec
SQLQ1 = "SELECT Tmp_Import.[Dealernummer Vestiging]FROM TblDealer INNER JOIN Tmp_Import ON TblDealer.[Dealernummer Vestiging] = Tmp_Import.[Dealernummer Vestiging] WHERE ((Not (Tmp_Import.[Dealernummer Vestiging])=[TblDealer]![Dealernummer Vestiging]));"
Set rs = CurrentDb.OpenRecordset(SQLQ1)
MsgBox rs
But this is not giving anything only a error.
like Type are not the same ..