G
Guest
I am making a search form, frmSearchIt. I have 11 unbound text controls on
the form each of which I named based on the field they are searching in their
respective tables:
txtCaseNum, txtFirstName, txtLastName, txtCompany, txtOfficer, txtTracerNum,
txtTIN, txtOpenDateFrom, txtOpenDateTo, txtCloseDateFrom, txtCloseDateTo
Three buttons are on the form, btnBack, btnClear, btnSearch.
What I want is when the user hits btnSearch the form takes the information
entered into the controls, if any, finds records matching and in the form
footer should display only 5 fields of those matching records along with a
way to click on a matching record and open another form, frmCase, which
displays just that record.
Just in case it makes a difference:
-All ‘Date’ fields in the tables are Date/Time data types, while fiends such
as txtCaseNum, txtTracerNum, and txtTIN, are text data types in the table.
-CaseNum is the primary key for the main table and secondary key for most of
the other tables.
-The main form, frmCase, has a bunch of subforms in it that are created at
the same time frmCase is created using field CaseNum. I havn’t figured out
how to delete them all at once but that is another issue.
-All the controls used on the search form, frmSearchIt, come from different
tables, but there are 9 tables so I will leave them out unless they are asked
for.
the form each of which I named based on the field they are searching in their
respective tables:
txtCaseNum, txtFirstName, txtLastName, txtCompany, txtOfficer, txtTracerNum,
txtTIN, txtOpenDateFrom, txtOpenDateTo, txtCloseDateFrom, txtCloseDateTo
Three buttons are on the form, btnBack, btnClear, btnSearch.
What I want is when the user hits btnSearch the form takes the information
entered into the controls, if any, finds records matching and in the form
footer should display only 5 fields of those matching records along with a
way to click on a matching record and open another form, frmCase, which
displays just that record.
Just in case it makes a difference:
-All ‘Date’ fields in the tables are Date/Time data types, while fiends such
as txtCaseNum, txtTracerNum, and txtTIN, are text data types in the table.
-CaseNum is the primary key for the main table and secondary key for most of
the other tables.
-The main form, frmCase, has a bunch of subforms in it that are created at
the same time frmCase is created using field CaseNum. I havn’t figured out
how to delete them all at once but that is another issue.
-All the controls used on the search form, frmSearchIt, come from different
tables, but there are 9 tables so I will leave them out unless they are asked
for.