The BIO (my master table) contains SS#(key), Surname, First, MI. I have a
1-to-Many relationship to the TRAINING LISTING table.
TRAINING LISTING contains:
RECORD # - an auto number entry (primary key)
NAME – employee’s name (this is connected to SS# in the BIO table; when
putting entries into the table, a drop-down menu appears with 3 columns,
containing all parts of the name. There is a 4th column which is hidden that
contains the SS#.)
Ok... you're another victim of Microsoft's misfeature, the Lookup
Wizard.
It *APPEARS* that the TRAINING LISTING table contains the name. It
doesn't. What it contains is the SS#; that simple fact is *concealed*
from your view by the Lookup combo box. Any query that you build with
TRAINING LISTING expecting the name to appear will cause confusion
because it *doesn't* (and shouldn't) contain the name.
CLASS – name of the class being taken.
START DATE – Date the class was started
END DATE – Date the class was completed
The third table is called CLASSES which is a listing of the classes that
have been taken. This is a sub-table of TRAINING LISTING, a 1-to-many
relationship.
Again... it's not really a "subtable". The Access table interface
presents it that way, but it's in fact a perfectly real, valid table
in its own right.
What I meant by TRAINING LISTING being an entry table is that this is the
table I used to enter all of the training each employee has taken.
I would strongly suggest that table datasheets (and subdatasheets, and
lookup fields)
*****NEVER*****
be used for data entry or display. They are of very limited utility
and flexibility. The relatively new additions of Lookup Fields and
Subdatasheets lets table datasheets get from A to D instead of just
from A to B - but they're still crippled data entry tools.
Instead, create a Form. You can base a Form on the BIO table, with a
Subform based on TRAINING LISTING, linked by SS#. The Subform would
have a Combo Box based on the Class table to enter the class
information.
To get back to your original question - you can create an Append Query
to enroll a whole group of students into a class in one operation, by
appending their SS# and the class information to the TRAINING LISTING
table. You'll need some sort of criteria to identify which students;
if it's everyone in the BIO table, simply create a Query based on BIO.
Select only the SS# field. In vacant field cells in the Query put the
Class Name (or Class ID, if the CLASSES table has an ID, you don't
say), and put the dates in two more vacant field cells. Turn this
query into an Append query and append it to TRAINING LISTING.
If you need to, you can contact me directly at my e-mail address posted in
my profile.
Private EMail support is available at my standard consulting rates, if
you're interested.
John W. Vinson[MVP]