Hi,
I am trying to use SQL to insert records in a table without the use of a Data control, my connection string works, I've been successfull using Select * from table, but I can't use a string to insert using the execute method, Is there another way, or am I missing something?
Here is what I have :
Dim db as database
Dim rs as recordset
set db = opendatabase("c:\folder",false,false,"dbase iii;"
set rs = openrecordset("select * from table order by date"
db.execute "Insert into table(field1,field2) values(variable1,variable2);"
Thanks for your help
I am trying to use SQL to insert records in a table without the use of a Data control, my connection string works, I've been successfull using Select * from table, but I can't use a string to insert using the execute method, Is there another way, or am I missing something?
Here is what I have :
Dim db as database
Dim rs as recordset
set db = opendatabase("c:\folder",false,false,"dbase iii;"
set rs = openrecordset("select * from table order by date"
db.execute "Insert into table(field1,field2) values(variable1,variable2);"
Thanks for your help