Results 1 to 4 of 4
  1. #1
    dascoli is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2013
    Posts
    16

    Need Main Form Combo Box to Update Records in Subform Field

    I have a database designed to track trips made by my company's vehicles. There is a form (frmTripEntry) that contains a subform (sfrmTripDetails). The main form tracks the trip, the subform tracks each stop made by the vehicle.



    Here is what I want to happen:
    After updating the Van Number combo box on the main form I want to assign the updated van number to the Van Number field for all records in the subform.

    I am sure that some kind of a loop is needed, but I have no experience with loops so I am unsure where to begin.

    Main Form Field:
    Combo7 - Control: VanNum - Table: tblTrips - Data Type: String

    Subform Field:
    VanNum - Control: VanNum - Table: tblTripDetails - Data Type: String

    Any help is greatly appreciated!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    For starters, why would vehicle be saved in the details table? It sounds like an attribute of the trip, not of a stop.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    dascoli is offline Novice
    Windows 8 Access 2013
    Join Date
    May 2013
    Posts
    16
    As I was writing my reasoning for doing this I realized that it was pretty stupid and I could accomplish my final goal another way. You can delete this thread. Thanks for taking the time to answer.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 7
    Last Post: 09-10-2014, 12:33 PM
  2. Replies: 6
    Last Post: 11-30-2013, 02:41 PM
  3. Replies: 10
    Last Post: 01-29-2013, 08:59 AM
  4. Replies: 1
    Last Post: 11-18-2012, 06:24 PM
  5. Replies: 3
    Last Post: 06-02-2012, 07:39 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