My tables are normalized and already have there relationships in place.
I have too many customers to use a form like the one you attached.
I had heard not to use DLookup which is why I did the search this way....
I am using 3 unbound text boxes (First,Nick,Last Name) with a macro that runs on update of the last box - set filter - where -
- [ID]=Forms![FormName]!UnbtxName
I have a query with this in the criteria for each of the name fields I am using in my search.
- Like [Forms]![FormName]![UnbtxName]
- Like "*" & [Forms]![FormName]![unbtxName] & "*"
When I enter names in the unbtx it populates a unbound list box with any matching names. When I select a name from the list the record for that student is displayed or a blank record if no record already exists.
This is set up a bit differently depending on the form.
I have a form where I enter a date and get a list box with events on that date. When I select the event in the list box it populates the sub form with a list of who is attending the event and has blank records to add new customers. When I need to add existing customers, I use a pop up form with the same search method to get the customer ID and add them to the event.
I hope that gives a basic idea of what I am currently doing.
However, this requires a separate query for each form because the form name is specified in each query and each form has a different name.
I was hoping to find something that didn't require a separate query every time I use the method OR a better option.
Thanks again for your time