Results 1 to 4 of 4
  1. #1
    mcahal is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2012
    Location
    East Texas
    Posts
    16

    Use combo box selection to view related info in subform

    Hi, I've read posts about this, but can't find one that relates to exactly what I've done..



    I have these tables with relations:
    Click image for larger version. 

Name:	SS06 Jan. 02 10.33.jpg 
Views:	10 
Size:	65.0 KB 
ID:	19195

    I'd like my main form to look something like this:
    Click image for larger version. 

Name:	SS07 Jan. 02 10.33.jpg 
Views:	10 
Size:	107.4 KB 
ID:	19196

    Should the Employee selection remain a combo box? Or is there an easier way? Right now, the first record for employee shows and has the correct assigned inventory. Would I use an "On Change" command?

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    You should use a text box for the employee field so that when you navigate form one record to other, the related records are displayed by the sub-form. One more option is still use the textbox bound to the employee field but hide it and use the above combo unbound. Navigate to the selected emplyoyee in the combobox AfterUpdate event.

  3. #3
    mcahal is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2012
    Location
    East Texas
    Posts
    16
    Quote Originally Posted by amrut View Post
    You should use a text box for the employee field so that when you navigate form one record to other, the related records are displayed by the sub-form. One more option is still use the textbox bound to the employee field but hide it and use the above combo unbound. Navigate to the selected emplyoyee in the combobox AfterUpdate event.
    A text box sounds great! Is there a way to incorporate a drop-down into the text box? Also, is it possible to create a form with multiple subforms?

  4. #4
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    Use the second option with unbound combo box. You can use multiple sub-forms on a form. Use tabcontrol if you have space constraint.

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

Similar Threads

  1. Replies: 12
    Last Post: 11-14-2014, 11:17 AM
  2. More Info" button based on Combo Box selection
    By kriskeven in forum Access
    Replies: 1
    Last Post: 05-21-2012, 02:23 PM
  3. Replies: 1
    Last Post: 02-03-2012, 03:51 PM
  4. Replies: 33
    Last Post: 01-13-2012, 07:44 AM
  5. Replies: 6
    Last Post: 03-10-2011, 11:31 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