G
Guest
I have two tables with identical structure.
I need to copy all records with a certain date from table to table
I use this SQL but it gets syntax error:
rs.Open "INSERT INTO tblAddress SELECT * FROM tblAddressOnline" & _
" WHERE RecordDate < Date", _
CurrentProject.Connection, adOpenDynamic, adLockOptimistic
rs.Close
Hopefully, there is a way to do this without having to name every column?
I need to copy all records with a certain date from table to table
I use this SQL but it gets syntax error:
rs.Open "INSERT INTO tblAddress SELECT * FROM tblAddressOnline" & _
" WHERE RecordDate < Date", _
CurrentProject.Connection, adOpenDynamic, adLockOptimistic
rs.Close
Hopefully, there is a way to do this without having to name every column?