Hi All,
Can anyone help here:
Public strOldTable,strNewTable as string
OldTable has data, NewTable is empty but with same field structure.
I assign names of tables to these variables and attempt to fill up the NewTable with the data from the OldTable using :
DoCmd.RunSQL "INSERT INTO ('" & strNewTable & "') SELECT * FROM " & ('" & strOldTable & "')
Driving me crazy; I can find examples of use of the OldTable variable but not of use of the NewTable in this SQL.
Please.....
Can anyone help here:
Public strOldTable,strNewTable as string
OldTable has data, NewTable is empty but with same field structure.
I assign names of tables to these variables and attempt to fill up the NewTable with the data from the OldTable using :
DoCmd.RunSQL "INSERT INTO ('" & strNewTable & "') SELECT * FROM " & ('" & strOldTable & "')
Driving me crazy; I can find examples of use of the OldTable variable but not of use of the NewTable in this SQL.
Please.....