Private Sub Command21_Click()
Can any one tell me wats wrong in my code??? it says i should use dbsee changes .... I don't what it is. Can you please give me the correct syntax for me. Here SID is the identity propery in sql table. I'm just testing 2 columns here but ihave more than 10 columns to update. Plz give me a syntax to support this.
Dim db As DAO.Database
Dim stSQL As String
stSQL = "update Lkp_Store1 " & _
"set Facility_Number='" & (Text8) & "',[Station]='" & (Text0) & "'" & _
" where SID = " & Me.Combo7.Value & ""
CurrentDb.Execute stSQL
MsgBox "New Record Updated.", vbInformation, "Successful Transaction"
End Sub
Thanks,
SAM
Can any one tell me wats wrong in my code??? it says i should use dbsee changes .... I don't what it is. Can you please give me the correct syntax for me. Here SID is the identity propery in sql table. I'm just testing 2 columns here but ihave more than 10 columns to update. Plz give me a syntax to support this.
Dim db As DAO.Database
Dim stSQL As String
stSQL = "update Lkp_Store1 " & _
"set Facility_Number='" & (Text8) & "',[Station]='" & (Text0) & "'" & _
" where SID = " & Me.Combo7.Value & ""
CurrentDb.Execute stSQL
MsgBox "New Record Updated.", vbInformation, "Successful Transaction"
End Sub
Thanks,
SAM