Doozer1979
Registered User.
- Local time
- Today, 21:15
- Joined
- Jul 4, 2007
- Messages
- 32
IHello all,
I have the following bit of code that i want to insert the value from txtGroupID into a filed called GroupID in a table called AlertsID. I only want it to update the table when another the AlertID field in the table matches the value in a txt box called txtAlertID. The save button is located on the same form level as the text boxes.
the VB editor returns the error " expected: end of statement"
Private Sub cmdSaveAlert_Click()
DoCmd.Save , "frmAlertsAM"
DoCmd.RunSQL "UPDATE AlertsAM SET GroupID = me.txtGroupID.value" _
& WHERE(AlertsAM.AlertAMID) = Me.txtAlertAMID;"
End Sub
Your help is greatly appreciated
I have the following bit of code that i want to insert the value from txtGroupID into a filed called GroupID in a table called AlertsID. I only want it to update the table when another the AlertID field in the table matches the value in a txt box called txtAlertID. The save button is located on the same form level as the text boxes.
the VB editor returns the error " expected: end of statement"
Private Sub cmdSaveAlert_Click()
DoCmd.Save , "frmAlertsAM"
DoCmd.RunSQL "UPDATE AlertsAM SET GroupID = me.txtGroupID.value" _
& WHERE(AlertsAM.AlertAMID) = Me.txtAlertAMID;"
End Sub
Your help is greatly appreciated