K
Ken
I am trying to create a backup table in my Access program from another
application via ADO.
I can "drop" the existing table, but am getting a syntax error when trying
to create the new table and can't figure out why.
Thanks in advance for any help.
CODE:
On Error GoTo create
Cnn.Execute ("DROP TABLE Locationsbkup ")
create:
Cnn.Execute ("Create table " & tablename & " AS (Select Locations.*
from Locations where 1=2)")
Cnn.Execute ("SELECT Locations.* INTO" & tablename & "FROM
Locations;")
application via ADO.
I can "drop" the existing table, but am getting a syntax error when trying
to create the new table and can't figure out why.
Thanks in advance for any help.
CODE:
On Error GoTo create
Cnn.Execute ("DROP TABLE Locationsbkup ")
create:
Cnn.Execute ("Create table " & tablename & " AS (Select Locations.*
from Locations where 1=2)")
Cnn.Execute ("SELECT Locations.* INTO" & tablename & "FROM
Locations;")