Results 1 to 4 of 4
  1. #1
    dkirtster is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    4

    How Do I create Relationship where one vehicle and be requested by more than one customer

    Hello,


    I have a Customer table.
    I need to create a Vehicles table that has the fields "Make" "Model" Year "Model".
    I need to use these 2 tables to create a form where a customer can enter the Make, Model, Year model of a vehicle they are requesting.
    How do I create a relationship where one vehicle can be requested by multiple customers.

    Thanks guys!

  2. #2
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,818
    You'd need a table with vehicle data (e.g. tblVehicles). When you get new year/model values you simply add new records. Same for Customers. Then you need what's known as a junction table. This table ought to have a PK field (autonumber will do) such as CustRequestID as well as the PK values from Customer and the PK values from Vehicles. Those values are known as foreign keys (FK's). This is basic normalization, which is probably something that you really should research otherwise you might be in for a rough ride.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    dkirtster is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    4

    Thumbs up Great. Good giudance...

    Quote Originally Posted by Micron View Post
    You'd need a table with vehicle data (e.g. tblVehicles). When you get new year/model values you simply add new records. Same for Customers. Then you need what's known as a junction table. This table ought to have a PK field (autonumber will do) such as CustRequestID as well as the PK values from Customer and the PK values from Vehicles. Those values are known as foreign keys (FK's). This is basic normalization, which is probably something that you really should research otherwise you might be in for a rough ride.
    Great man, that's the solution; Junction Table.

    Thanks for the prompt and proper guidance.

  4. #4
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,818
    You're welcome.Good luck with your db.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 05-17-2020, 01:42 PM
  2. Replies: 5
    Last Post: 07-15-2018, 10:14 PM
  3. Replies: 4
    Last Post: 06-10-2015, 11:59 AM
  4. Replies: 5
    Last Post: 05-03-2014, 02:03 PM
  5. Replies: 6
    Last Post: 12-11-2013, 09:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums