Hi. I am somewhat new to Access but have a pretty basic knowledge of the program and how to do the basics. I am trying to make a database for someone at work to keep track of their volunteers.
On the form that I am having trouble with I am trying to have some kind of option for the user to select or search to view a volunteer record. I have managed to get a combo box to show the names but when I select one, it doesn't update the records in the form below. Then I tried a search box using some code I found on a thread on here but that is not working either. Here is the code and the error I am getting.
If anyone can provide me with some guidance or code that would be greatly appreciated. Thanks.The code reads as follows:
Dim strCriteria as string
strCriteria="EmployeeName='" & Me.Text21 & "'"
DoCmd.ApplyFilter , strCriteria
Error reads:
Run-time error '3075':
Syntax error (missing operator) in query expression 'Last Name='___"
The ___ is whatever last name I try and search for.