Hi Sandy,
I thought it would be easy to supply the combo boxes by having separate
tables.
Not really. It is just as easy to include the appropriate criteria in the
WHERE clause of a SQL statement (or saved query), so that the appropriate
records are selected. You will likely want to base the rowsource on a query
in any case, so that you can apply an appropriate sort order.
But here's just one example of where the difficulty comes in, by storing
like data in separate tables: suppose you need to create a report, grouped by
Repair Type, which includes all of the repair types offered. In this case,
you will be forced into using a Union query, in order to join all the data
back together again. Here is a tutorial on Union queries, in case you are not
aware of this query type. It is on my personal web space, and was written
several years ago by a co-worker at my place of work:
http://home.comcast.net/~tutorme2/samples/unionqueries.zip
So, I think it would be best if you combined the data from tblGrips,
tblLoftAndLie, tblReglue, tblShafts, etc. into one table. Add a new field to
indicate the repair type. This can either be a text field, with values such
as "grips", "loft", "reglue", "shafts", etc., or it can be a numeric field
(Long Integer--->remove the default 0 value) that serves as a foreign key
field for a new table, say tblRepairTypes, with an autonumber primary key.
If you go with the two table design, which is normalized better vs. a single
table design, where repair types are broken out to a new table, you would
likely want to have two combo boxes on your form: one to select the repair
type, and the second (synchronized) combo box to allow the user to select
appropriate records for the repair type selected in the first combo box. Here
are a couple of tutorials on this subject:
Limit content of combo/list boxes
http://www.mvps.org/access/forms/frm0028.htm
How to Synchronize Two Combo Boxes on a Form
http://support.microsoft.com/kb/289670
Note: Disregard the "in Access 2002 or in Access 2003" part from the title
of the second article, as the same logic applies to other versions of Access
equally well.
Here is a link to various database design papers. This topic is very
important that you gain a good understanding of, in order to have success
using Access. I recommend at least reading the first two articles, by author
Michael Hernandez:
http://www.accessmvp.com/JConrad/accessjunkie/resources.html#DatabaseDesign101
Tom Wickerath
Microsoft Access MVP
https://mvp.support.microsoft.com/profile/Tom
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________