Results 1 to 8 of 8
  1. #1
    ensmith1 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2016
    Posts
    4

    Results from combobox on form do not show up on designated table when adding a new record


    I have a form using two tables one contains all the employee names, etc (table 1). The second table contains the responses when a recorded is added. The problem i am having is when i select add record on the form it does not include the names from table 1 only the responses are captured on table 2.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is the recordsource of your form a query with the two tables joined?

  3. #3
    ensmith1 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2016
    Posts
    4
    No the recordsource is table 2 where the added results are.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    A Form can *only* use one recordsource. The results you are getting are as I would expect. A query joining two tables with the proper keys will let you treat both tables as if they were one.

  5. #5
    ensmith1 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2016
    Posts
    4
    Thanks for the help. One more question - how can i link a list box to a form category i.e. Employee ID so that when that Employee ID is shown on the form the list box shows all the history of that ID on the form from a query?

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    That really depends on how you have your tables structured. What you described is similar to how you use SubForms and the SubFormControl has a built in function (LinkMaster/ChildFields) that can do all of the work for you.

  7. #7
    ensmith1 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2016
    Posts
    4
    Ok i will try the Subform. Thanks again.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Post back here if you need additional assistance.

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

Similar Threads

  1. Replies: 3
    Last Post: 05-03-2015, 10:28 AM
  2. Replies: 1
    Last Post: 04-26-2013, 05:30 PM
  3. Replies: 16
    Last Post: 02-06-2013, 03:06 PM
  4. Replies: 5
    Last Post: 08-24-2012, 10:32 AM
  5. Replies: 6
    Last Post: 05-14-2012, 07:24 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