I have a table(tblOncReg) that contains a record number field(MedRecNo), last name(LNAME), and first name(FNAME).
I want to create a form with 3 text boxes that will accept a record number, last name, or first name, and search tblOncReg for associated records. The record should populate all fields in my main form(OncRegMain). A MedRecNo search will only yield 1 result as that is a primary key, so the main form should automatically populate. The last and first name search may return multiple records for people with the same last or first name. In that case, I'd like a form to open with a list of all matching records, with the ability to open the appropriate one.
Any ideas?
I want to create a form with 3 text boxes that will accept a record number, last name, or first name, and search tblOncReg for associated records. The record should populate all fields in my main form(OncRegMain). A MedRecNo search will only yield 1 result as that is a primary key, so the main form should automatically populate. The last and first name search may return multiple records for people with the same last or first name. In that case, I'd like a form to open with a list of all matching records, with the ability to open the appropriate one.
Any ideas?