Results 1 to 4 of 4
  1. #1
    KAffleck is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2019
    Posts
    23

    combo box link to form


    Hi, I have a form (A) that has a combo box, I would like to select a item in that box and have it open another form (B) with all the information linked to that item. I have both forms done and I've connected the combo box to a box in form B but when I select an item from form A it opens form B but with another combo box where I want my single item to be.
    How should I link the forms so it just displays the single item in form B?

    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    in the query that fills the combo, make it have 2 columns, CAPTION, FRM
    the user sees CAPTION,but its bound to the 2nd col
    FRM
    .

    then the code to open:
    Code:
    sub cboBox_afterupdate()
       docmd.openform cboBox  ,,,[id]=" & me.txtID
    end sub

  3. #3
    KAffleck is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2019
    Posts
    23
    Thank you, I'll try that.

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    SORRY, I meant FORM, not qry.

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

Similar Threads

  1. Replies: 21
    Last Post: 08-21-2018, 05:09 PM
  2. I want to create a link combo box
    By Jeremy Sng in forum Access
    Replies: 4
    Last Post: 10-27-2016, 07:08 AM
  3. Replies: 1
    Last Post: 01-10-2013, 05:59 PM
  4. Replies: 3
    Last Post: 12-14-2012, 08:59 AM
  5. Please Help - Link combo boxes
    By anish in forum Forms
    Replies: 5
    Last Post: 04-10-2010, 02:58 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