I'm currently building a DB that you will keep track of vehicles,
services to the vehicles and parts used for the servicing of the
vehicles.
I've created a table for Customers, Vehicles and Servicing which work
fine. The question I have is that I don't want to simply enter 10 x
Part Description, 10 x Part Cost in the servicing table for the user to
be able to enter the parts used .As on some occasions more parts will
be used and probably most frequently less than 10 parts will be used
for the servicing.
Looking through various DB designs I've come up with the following :-
Services Table,
Fields Service Id (PK), ServiceDate, ServiceDesc etc
Parts Used for Service Table
Fields ServiceParts (PK), Service ID (FK), ServiceParts
ServiceParts
Fields ServiceParts(PK), ServiceID, PartID, Qty etc
With this design it wouldn't then matter if the user used 1 part or
1000 parts for the service. The question is how can I set this up on an
Access form so that the intermediate table is updated correctly with
the correct values to keep the Relationship's correct between the three
tables.
I look forward to your answers in the near future.
Best Regards
Elfyn