I apologize for the lack of detail.
[quoted text clipped - 9 lines]
The user will be a person creating the "master schedule" for all the classes
and locations.
Then you need A THIRD TABLE. If each Class may occur (at different
times) in several locations, and each Location may (over time) host
different classes, then you have a very basic many to many
relationship.
This might be named Schedule, and have fields CIN (link to the Courses
table), Location_Number (link to Locations), and probably some
date/time fields to indicate when this class will be held in this
location.
I plan to build a form and subform that the user will enter the CIN for the
course info and the remainder of the course info will populte and then the
user will enter the Location_Number and the remainder of the location info
will populate.
If you use a Form based on the Course table and a Subform based on
this third Schedule table it can have a Combo Box to select the
location. You would not need or want to redundantly store the other
location information; it can be displayed on the subform if you wish
by including the location fields in the combo box, and adding
textboxes with control sources like
=cboLocation.Column(n)
where cboLocation is the name of the combo box and n is the zero-based
index of the field you want displayed.
After this is complete, the user will select a button to add the course info
(class data and location data) into a new table (Master_Schedule) that will
eventually be exported to an excel spreadsheet that gets sent to the gods
above to somehow get put into a mainframe someplace.
It is not necessary to create this table. You can instead create a
Query joining all three tables - Courses joined to Schedule by CIN,
and Schedule joined to Location by Location_Number; this *query* can
be exported to Excel.
I'm certain there is a better way/process to do all this but my hands are
tied. Currently we are building the excel spreadsheet by hand (this means
entering all the data everytime). There are probably 75-100 additions each
month.
You are not prohibited from doing the job correctly I hope!!!
John W. Vinson[MVP]