i'm trying to do an update statement in VB. what is the correct syntax for this. i keep getting syntax errors. I'm trying to update a table with a variable named intLine_num where the formid in the table matches the variable txtFormId
DoCmd.RunSQL "Update cb_Numbers SET line_num = " & intLine_num & "WHERE ((txtFormID) = "cbNumbers.formid")
DoCmd.RunSQL "Update cb_Numbers SET line_num = " & intLine_num & "WHERE ((txtFormID) = "cbNumbers.formid")