Results 1 to 4 of 4
  1. #1
    daltman1967 is offline Novice
    Windows 7 32bit Access 2010 64bit
    Join Date
    Jul 2011
    Posts
    18

    Creating Secondary Subform

    I'm trying to create a database. The main table is customers. The secondary table is vehicles. This is a simple one-to-many relationship. However, for each 1 vehicle, there is a tertiary table called payments, which is ALSO a one-to-many relationship.



    What I want is either all on two separate forms: #1 the customer I'm looking at, #2 the vehicle list for that customer, with associated payment for THAT VEHICLE ONLY. As you cycle down the list of vehicles, the list of payments will be changing accordingly. I've got the first part - the customer & vehicles - but can't figure out how to get the tertiary table to display properly. All it does at the moment is display ALL records.

    Can anyone help??

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    The 2nd sub form (payments) would have the property LINK MASTER FIELDS to the carID.
    (car ID picked in sub)
    It would be the item picked in the 1st subForm... forms!frmMain!form!subFrmCar!txtCarID

  3. #3
    daltman1967 is offline Novice
    Windows 7 32bit Access 2010 64bit
    Join Date
    Jul 2011
    Posts
    18
    Wow. Thanks. However: How do I get it to update when I change records on the vehicle?

  4. #4
    daltman1967 is offline Novice
    Windows 7 32bit Access 2010 64bit
    Join Date
    Jul 2011
    Posts
    18
    Never mind. I got it. Thanks for your help.

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

Similar Threads

  1. Choosing A Secondary List In A Combo Box
    By HectorTheInspector in forum Forms
    Replies: 5
    Last Post: 01-27-2014, 11:29 PM
  2. Replies: 1
    Last Post: 07-22-2013, 12:00 PM
  3. Reuse primary or create secondary tables?
    By squirrly in forum Database Design
    Replies: 7
    Last Post: 03-04-2013, 06:34 PM
  4. Replies: 1
    Last Post: 02-18-2011, 01:40 AM
  5. Primary and Secondary Keys...
    By LittleOleMeDesigns in forum Database Design
    Replies: 5
    Last Post: 07-24-2009, 11:33 AM

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