R
rdemyan via AccessMonster.com
I know how to do the following:
strSQLAPPEND = "INSERT INTO [TableA] (FIELD1, FIELD2, FIELD3) " & _
"SELECT '" & rst.Fields(0) & "', '" & rst.Fields(1) & "', '" & rst.Fields(2)
& "'"
But what if the recordset rst has all of the fields in TableA and I don't
want to specify each field (like using an * instead).
I want to do something like:
strSQLAPPEND = "INSERT INTO [TableA] " & _
"SELECT '" & rst &
The idea would be that the entire recordset would be inserted. I want to
keep this generic because I'm looping through all of the backend tables and
am comparing them with a snapshot of the backend taken at the point my app
was opened. Then when I find an existing row in a table where a value in any
field has changed I want to write that row to another table using an Append
query like what I have above. Everything except this is working just fine.
This is the last piece that I need to get this whole thing working.
Thanks.
Thanks.
strSQLAPPEND = "INSERT INTO [TableA] (FIELD1, FIELD2, FIELD3) " & _
"SELECT '" & rst.Fields(0) & "', '" & rst.Fields(1) & "', '" & rst.Fields(2)
& "'"
But what if the recordset rst has all of the fields in TableA and I don't
want to specify each field (like using an * instead).
I want to do something like:
strSQLAPPEND = "INSERT INTO [TableA] " & _
"SELECT '" & rst &
The idea would be that the entire recordset would be inserted. I want to
keep this generic because I'm looping through all of the backend tables and
am comparing them with a snapshot of the backend taken at the point my app
was opened. Then when I find an existing row in a table where a value in any
field has changed I want to write that row to another table using an Append
query like what I have above. Everything except this is working just fine.
This is the last piece that I need to get this whole thing working.
Thanks.
Thanks.