Hi Friends,
i have a Form which uses unbound textbox to display values from a table.
Since it is textbox it will not be retain its value once i close access
in order to view what i last entered i am trying to copy the values to another table
and then on opening access again textboxes will be populated values from this table.
But i am finding a problem while executing update command on closing
DoCmd.RunSQL "UPDATE Table2 " & _
"SET Table2.ID = " & ref & " " & _
"SET Table2.Date = #" & date1 & "# " & _
"SET Table2.Time = #" & time1 & "# " & _
"SET Table2.VisitorName = '" & visitorname & "' " & _
"SET Table2.POBRFC = '" & pobrfc & "' " & _
"SET Table2.VisitorFrom = '" & visitorfrom & "' " & _
"SET Table2.PR = '" & pr & "' " & _
"SET Table2.RepeatNew = '" & repeatnew & "' " & _
"SET Table2.Status = '" & status & "' " & _
"WHERE Table2.Slno = " & slno & ";"
This statement is returning an error
as
Runtime error '3075'
Syntax error (missing operator)
i am unable to identify the syntax error how much i tried
Please Help me on this
Thanks in advance
Dhanesh