solun
Programmer
- Apr 1, 1999
- 55
Hi, all...
I'm learning the SQL statement "Insert Into" today... I've got a bunch of calculations created by a vba script and need to pop the results into a table to be able to create reports off it. Since I've been using a SQL statement to create a recordset to get the original data, i thought using a SQL statement to create a recordset for inserting would work...
Runtime error 3219: Invalid operation
So, how am I supposed to do this?
Thanks!
Heidi I. Jones
Ridgerunner Consulting
Questions Answered. Problems Solved.
I'm learning the SQL statement "Insert Into" today... I've got a bunch of calculations created by a vba script and need to pop the results into a table to be able to create reports off it. Since I've been using a SQL statement to create a recordset to get the original data, i thought using a SQL statement to create a recordset for inserting would work...
Code:
strSQL = "INSERT INTO errors VALUES (" & lid & "," & today & "," & ctapps & ")"
Set rs3 = CurrentDb.OpenRecordset(strSQL)
Runtime error 3219: Invalid operation
So, how am I supposed to do this?
Thanks!
Heidi I. Jones
Ridgerunner Consulting
Questions Answered. Problems Solved.