Getting Syntax error using VB to insert into an Access table.
This code is in a loop.
The Division is set to a value pulled from a database
The Prior_Division stores the previous value for the Division varaible
Dim Division As String
Dim Prior_Division As String
SQL_Insert =
"Insert into TABLE_A (DateRun,Source,Period,Division)
values
(# " & Now & " #, ""SRC1"", ""2011"", & Prior_Division & );"
I am getting Syntax error (missing operator) in query expression '&Prior_Division &'
I've done debug statements and printed the values for the Division and Prior_Division variables and
they are simple text values like "Dept A" "Dept B"
Any help on why I get the error is appreciated