I want to make a form to search a table for the first and last name or just the last name if the first name is left blank. Currently I am taking the names from a form and putting them in query to find the names that match. The problem is when I leave the first name blank, the query searches for a blank string in the first name. If the first name is left blank I want the query to show all first names that go with the last name. Here is what I have as the criteria for the last name in the query:
[forms]![frmEnterSpeakerName]![SpeakerLast]
I have not been able to figure out what to put in for the criteria for the firstname in the query.
Thanks,
J
[forms]![frmEnterSpeakerName]![SpeakerLast]
I have not been able to figure out what to put in for the criteria for the firstname in the query.
Thanks,
J