leonepaolo
Programmer
Hi,
I can't figure out how to code the SQL to copy multiple fields from multiple rows to an existing table.
sDestinationFields = "fld1, fld2, fld3"
sSourceFields = "fld1, fld2, fld3"
sql = "INSERT INTO " & tblDestination & "(" sDestinationFields & ") " & _
"SELECT " & sSourceFields & " FROM " & tblSource
I don't understand why this doesn't work because when I use it for just one field it works well.
Any comments or suggestions would be greatly appreciated.
Thanks,
Paolo
I can't figure out how to code the SQL to copy multiple fields from multiple rows to an existing table.
sDestinationFields = "fld1, fld2, fld3"
sSourceFields = "fld1, fld2, fld3"
sql = "INSERT INTO " & tblDestination & "(" sDestinationFields & ") " & _
"SELECT " & sSourceFields & " FROM " & tblSource
I don't understand why this doesn't work because when I use it for just one field it works well.
Any comments or suggestions would be greatly appreciated.
Thanks,
Paolo