ironj32
05-12-2009, 10:16 AM
I have a user form with an Update button on it, which when clicked I want it to Filter the records to the current one. I have tried the following code (which has worked in other db's I created):
Private Sub cmdUpdate_Click()
DoCmd.ApplyFilter , "Application Name = " & Me.txtAppName
End Sub
I keep getting the following error:
Run-time error '3075':
Syntax error (missing operator) in query expression 'Application Name = Pro 1099'.
Pro 1099 being the value that is currently in the txtAppName text box. I have been trying to figure this out for a couple days now, but just can't seem to resolve it. Any suggestions would be much appreciated!
Private Sub cmdUpdate_Click()
DoCmd.ApplyFilter , "Application Name = " & Me.txtAppName
End Sub
I keep getting the following error:
Run-time error '3075':
Syntax error (missing operator) in query expression 'Application Name = Pro 1099'.
Pro 1099 being the value that is currently in the txtAppName text box. I have been trying to figure this out for a couple days now, but just can't seem to resolve it. Any suggestions would be much appreciated!