G
Guest
From a form, I have a table of records that I am appending to an SQL Server
database, but I'd like to store those records in another local Access
database as a backup of what was sent before I append. In an onclick event,
I build the filename string (strTableName) and then build the SQL string:
strSQL = "SELECT tblSend.* INTO " & strTableName & " IN
'Q:\ICP\ICPBackups.mdb' FROM tmptblSend;"
But running that SQL string in a recordset open statement (the recordset,
rst1, and connecction, cnn, are properly intialized according to the ADO
examples)
rst1.Open stSQL, cnn, 1
results in error code 3001 - "arguments are of the wrong type, are out of
acceptable range, or are in conflict with one another"
Evidently my approach is wrong, but I don't see a solution in VB or Access
help, yet.
has anyone done something like this before?
Harry V
database, but I'd like to store those records in another local Access
database as a backup of what was sent before I append. In an onclick event,
I build the filename string (strTableName) and then build the SQL string:
strSQL = "SELECT tblSend.* INTO " & strTableName & " IN
'Q:\ICP\ICPBackups.mdb' FROM tmptblSend;"
But running that SQL string in a recordset open statement (the recordset,
rst1, and connecction, cnn, are properly intialized according to the ADO
examples)
rst1.Open stSQL, cnn, 1
results in error code 3001 - "arguments are of the wrong type, are out of
acceptable range, or are in conflict with one another"
Evidently my approach is wrong, but I don't see a solution in VB or Access
help, yet.
has anyone done something like this before?
Harry V