Y
ypmarg
I have an existing table that contains all my data. I created a new table
using:
dbs.Execute "CREATE TABLE " & strCourse & " (LastName CHAR, FirstName CHAR,
" & strCrseCol & " DATETIME, " & strCrseNom & " YESNO)"
and this works fine. Now I need data from my existing table to my newly
created table. The code I wrote is:
strSQL = "INSERT INTO " & strCourse & " SELECT LastName, FirstName, " &
strCrseCol & "," & strCrseNom & " FROM Associates WHERE " & strCrseNom & "
=False"
CurrentDb.Execute strSQL
When I get to the last line to execute, I get a "runtime error 3075 - syntax
erro missing operator"
I can send the entire code I've written, if that will help.
using:
dbs.Execute "CREATE TABLE " & strCourse & " (LastName CHAR, FirstName CHAR,
" & strCrseCol & " DATETIME, " & strCrseNom & " YESNO)"
and this works fine. Now I need data from my existing table to my newly
created table. The code I wrote is:
strSQL = "INSERT INTO " & strCourse & " SELECT LastName, FirstName, " &
strCrseCol & "," & strCrseNom & " FROM Associates WHERE " & strCrseNom & "
=False"
CurrentDb.Execute strSQL
When I get to the last line to execute, I get a "runtime error 3075 - syntax
erro missing operator"
I can send the entire code I've written, if that will help.