PROBLEM
I want to insert the current recordset row into a MS Access table. I am currently getting this error
Syntax error (missing operator) in query expression 'rs[columnname]'
CODE
Here is my current code, I am trying to grab all the columns and insert them into a new table.
DoCmd.RunSQL "INSERT INTO tblSummary_Appl_Usage_score VALUES (rs[Configuration], rs[User Input / Output])"
I am not quite sure what i am missing.
If the type fields in your table
tblSummary_Appl_Usage_score
are numbers, use this:If the type is string, use this:
Open
tblSummary_Appl_Usage_score
as aDAO recordset
. Then use its.AddNew
method to create a new row and store the values from your ADO recordset.With this approach, your code needn't be adapted differently based on the recordset field data types. It will work correctly regardless of data type as long as the matching fields are both the same or compatible data types.