Search code examples
databasedatabase-designms-access-2007

Multiple tables access database


I am very new to Access and I am working on a database and I need help coming up with a solution:

I am recording data from a bunch of asphalt laying crews. Each crew has a record with a field for production and equipment. Each crew has varying types of equipment and varying quantities of equipment. Therefore, I would need to create a new table for the type and quantity of equipment every time I enter a new record... can someone please help me come up with a solution?


Solution

  • You do not need a new table for each record, you just need a properly set up table. Let us say:

    Crews table
    CrewID
    Location
    Etc
    
    CrewMembers table
    MemberID
    Etc
    
    CrewEquipment table
    CrewID
    EquipmentID
    DateIn
    DateOut
    Etc
    
    Equipment table
    EquipmentID
    Details
    Etc
    

    You might like to read http://r937.com/relational.html

    With the above set-up, you can have a Crew form with subforms for members and equipment. You can get an idea from this create form to add records in multiple tables