aman
04-02-2009, 05:25 AM
Hi guys
I am getting syntex error when i try to update multiple columns using the following code.
s2 = "(update tblmain set (timeactioned = #" & Format(Me.Text16.Value, "hh:mm:ss") & "#) and (timetoscanning= # " & Format(Me.Text18.Value, "hh:mm:ss") & " #) and (timescanned= #" & Format(Me.Text20.Value, "hh:mm:ss") & "#) and (numberofpages= " & Format(Me.Text22.Value, "hh:mm:ss") & ") and (scannedby='" & Format(Me.Text22.Value, "hh:mm:ss") & "') where BatchNo= " & Combo4.Value & ")"
DoCmd.RunSQL (s2)
Can anyone help me out in this.
Regards
AMAN
I am getting syntex error when i try to update multiple columns using the following code.
s2 = "(update tblmain set (timeactioned = #" & Format(Me.Text16.Value, "hh:mm:ss") & "#) and (timetoscanning= # " & Format(Me.Text18.Value, "hh:mm:ss") & " #) and (timescanned= #" & Format(Me.Text20.Value, "hh:mm:ss") & "#) and (numberofpages= " & Format(Me.Text22.Value, "hh:mm:ss") & ") and (scannedby='" & Format(Me.Text22.Value, "hh:mm:ss") & "') where BatchNo= " & Combo4.Value & ")"
DoCmd.RunSQL (s2)
Can anyone help me out in this.
Regards
AMAN