This is where I am at:
Code:
Private Sub SaveRecord_Click()
DoCmd.RunSQL "UPDATE ServiceBulletins SET ServiceBulletins.WorkOrder = " & Forms!NewServiceBulletins!WOCombo
End Sub
So, this kind of works. The problem is this updates all of the data inmy ServiceBulletins table (for WorkOrder). What I want is to update a specific record for a certain REG# and ServiceBulletin. I'm thinking I can use a WHERE statement in my update, but I have been unable to get that to work. What I have been trying is similar to:
Code:
Private Sub SaveRecord_Click()
DoCmd.RunSQL "UPDATE ServiceBulletins SET ServiceBulletins.WorkOrder = " & Forms!NewServiceBulletins!WOCombo WHERE ServiceBulletins.REG# = Forms!NewServiceBulletin.RegCombo2 & ServiceBulletins.ServiceBulletin = Forms!NewServiceBulletin.ServBullCombo
End Sub
The bolded/underlined is the criteria I am trying to filter by. Have not been able to get this to work.
Thanks