sven2
12-23-2008, 07:28 AM
Hello,
I have the following query that inserts some values in a table. Now it is possible that some of these values already exist in this table.
How can i find out what can be inserted and what not?
This is the query:
strSQL2 = " INSERT INTO Personeels_evaluaties ( Personeelsnummer, Itemnummer ) " & _
" SELECT Personeelsfuncties.Personeelsnummer, " & Me.lstitems & " AS Itemnummer " & _
" FROM Personeelsfuncties " & _
" WHERE ((Personeelsfuncties.FunctieID) = " & Me.lstfuncties & ") And ((Personeelsfuncties.MachineId) = " & Me.lstmachine & "); "
Best regards,
Sven.
I have the following query that inserts some values in a table. Now it is possible that some of these values already exist in this table.
How can i find out what can be inserted and what not?
This is the query:
strSQL2 = " INSERT INTO Personeels_evaluaties ( Personeelsnummer, Itemnummer ) " & _
" SELECT Personeelsfuncties.Personeelsnummer, " & Me.lstitems & " AS Itemnummer " & _
" FROM Personeelsfuncties " & _
" WHERE ((Personeelsfuncties.FunctieID) = " & Me.lstfuncties & ") And ((Personeelsfuncties.MachineId) = " & Me.lstmachine & "); "
Best regards,
Sven.