astarbyfar
Registered User.
- Local time
- Today, 09:42
- Joined
- Apr 27, 2003
- Messages
- 93
Has anyone any idea what is up with the following code. What I want it to do is update the record which is identified on the form by the text box called "linked". Im getting an error message saying:
Run time error 3075
Syntax errot (missing operator) in query expression 'PSM Code=1000'
which is the correct value stored in the text box named linked. The full code is:
Private Sub ExitForm_Click()
DoCmd.RunSQL "UPDATE Location settings SET location1 = " & [Forms]![View die locations]![location1] & " " & ", location2 = " & [Forms]![View die locations]![location2] & " WHERE PSM Code = " & [Forms]![View die locations]![linked] & ";"
DoCmd.RunMacro "View.welcome"
End Sub
Any help will greatly be appreciated.
Regards Mike
Run time error 3075
Syntax errot (missing operator) in query expression 'PSM Code=1000'
which is the correct value stored in the text box named linked. The full code is:
Private Sub ExitForm_Click()
DoCmd.RunSQL "UPDATE Location settings SET location1 = " & [Forms]![View die locations]![location1] & " " & ", location2 = " & [Forms]![View die locations]![location2] & " WHERE PSM Code = " & [Forms]![View die locations]![linked] & ";"
DoCmd.RunMacro "View.welcome"
End Sub
Any help will greatly be appreciated.
Regards Mike