Hi
I have this simple append query below, I want all rows from TABLE2 to be inserted into table1 which will EXCLUDE all DifID already in table 1 (Main)
Basically, ONLY insert new rows.
The below does work just appending everything.
How would I write the WHERE clause?
Sql1 = "INSERT INTO table1 ( Name, Surname, Wend, DifID )" & _
"SELECT table2.Name, table2.Surname, table2.Wend, table2.DifID " & _
"FROM table2;"
Hope u can help
Thx
Darin
I have this simple append query below, I want all rows from TABLE2 to be inserted into table1 which will EXCLUDE all DifID already in table 1 (Main)
Basically, ONLY insert new rows.
The below does work just appending everything.
How would I write the WHERE clause?
Sql1 = "INSERT INTO table1 ( Name, Surname, Wend, DifID )" & _
"SELECT table2.Name, table2.Surname, table2.Wend, table2.DifID " & _
"FROM table2;"
Hope u can help
Thx
Darin