DoCmd.RunSQL "UPDATE [" & dest & "] SET [Association] '=' [" & Associate & "];"
This SQL statement causes trouble. I tried many variations but none worked. Here the dest is a variable containing the tablename, Association is the name of a column of dest and Associate is a variable containing the data to be stored in all table records. Please help.
If Association is text then:
"UPDATE [" & dest & "] SET [Association] ='" & Associate & "'"
If number then:
"UPDATE [" & dest & "] SET [Association] =" & Associate & "
If Association is text then:
"UPDATE [" & dest & "] SET [Association] ='" & Associate & "'"
If number then:
"UPDATE [" & dest & "] SET [Association] =" & Associate & "