Hi All,
I have a form derived from two different tables. The "contacts" table is the main table and the "Appointments" is the secondary table. It is used to track the appointments of employees.
I have added search functionality via a command button with an event procedure using a "Private sub-routine" that I got from the forum. The event works fine for the "contacts" table search. However, I cannot get it to work for the secondary table. I have modified the 'If Else' routines to match the field I want to search on--but it does not work.
My form displays one employee/contact at a time with all of their appointments linked to them.
Question: Is it possible to search the form for information from both tables using the same search button in the header section of the form? Right now, it does not do anything when I search for a particular appointment (the child form).
Ex: I want to search for an appointment from a txt field using "certifying Officer" as the terms to search. I enter this information into the search box, hit the search button, and the employee with an appointment that matches those terms should come up, along with all of their other appointments, if any.
Thank you.