Hi.
How I'm going to search all six fields using one criteria is a problem I
haven't gotten to yet.
You've built your house upside down and now you're wondering how to use the
toilet when it's "way up there." ;-)
Fortunately, rebuilding a database's table structure when it was designed
incorrectly isn't nearly as difficult or expensive as rebuilding a house that
was designed incorrectly.
The table with the conferences (tblConferences with ConfID -- example
primary key, ConfName, Location, ConfDate, et cetera) should only contain
information about the conferences. It shouldn't contain information about
everyone that attended, who all the keynote speakers were, when the next
conference is scheduled, et cetera.
Other related information should be stored in other related tables, such as
tblPersonnel storing the names of attendendees (PID -- example primary key,
FirstName, LastName, Phone, et cetera) and tblAttendance (AID -- example
primary key, PID -- from tblPersonnel for the person who attended, ConfID --
from tblConferences for the conference this person attended).
If you structured your database tables this way, you'd be able to:
1.) Create a JOIN query that the search form could use as the RecordSource
Property that lists the conference information and personnel information,
too; and
2.) Create a query listing the full name of each person; and
3.) Create your combo box based upon this query that allows the user to
select the person on the search form to search for. Please see the following
Web page for a link to Tom Wickerath's sep-by-step tutorial, "Using A Combo
Box To Find A Record":
http://www.Access.QBuilt.com/html/articles.html
The query for the search form's RecordSource Property could be as simple as:
SELECT tblPersonnel.PID, tblPersonnel.FirstName,
tblPersonnel.LastName, tblAttendance.AID,
tblConferences.ConfID, tblConferences.ConfName
FROM (tblPersonnel INNER JOIN tblAttendance ON
tblPersonnel.PID = tblAttendance.PID)
INNER JOIN tblConferences ON
tblAttendance.ConfID = tblConferences.ConfID;
The query for the combo box could be as simple as:
SELECT PID, (FirstName & " " & LastName) AS FullName
FROM tblPersonnel
ORDER BY LastName;
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.