I have an unbound text box with a search button running a macro "applyfilter," and in the "Where Condition =" I have the following;
[lastname] & [firstname] & [rate] & [rank] & [notes] & [workarea] & [badge] Like "*" & [Forms]![N91 RECORDS]![Text128] & "*"
Now, in the form, if I open it up I can search all day. However, if I make one change to any data in the form and then go to search I receive the "beforeupdate" error 2115, UNLESS, I first hit the "Save" button on my form. Then the search function will return no errors until I make another change and don't hit the save button first.
I also get the run-time error 2115 for the "Clear Filter" running this code under the same conditions;
Private Sub Command197_Click()
DoCmd.ShowAllRecords
Me.Text128 = ""
End Sub
What can I do about this so that the user can make a change on a form he/she just searched for and then clear the filter, and or do a new search without this error popping up every time without hitting the save button after every little change?
[lastname] & [firstname] & [rate] & [rank] & [notes] & [workarea] & [badge] Like "*" & [Forms]![N91 RECORDS]![Text128] & "*"
Now, in the form, if I open it up I can search all day. However, if I make one change to any data in the form and then go to search I receive the "beforeupdate" error 2115, UNLESS, I first hit the "Save" button on my form. Then the search function will return no errors until I make another change and don't hit the save button first.
I also get the run-time error 2115 for the "Clear Filter" running this code under the same conditions;
Private Sub Command197_Click()
DoCmd.ShowAllRecords
Me.Text128 = ""
End Sub
What can I do about this so that the user can make a change on a form he/she just searched for and then clear the filter, and or do a new search without this error popping up every time without hitting the save button after every little change?