Results 1 to 3 of 3
  1. #1
    Gags is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Feb 2015
    Posts
    2

    Combo box filter in subform showing blank at form opening

    Hello..I have been looking for a solution to this problem for a while but not been successful so far.
    Situation is follows:
    Am adapting the Northwind DB for my use.
    In the Purchase Order details form a Supplier has to be chosen via a combo box. Based on that another combo box in the subform displays products only from this supplier (Products table is linked to supplier table).
    I managed to let the subform combo show only relevant products using criteria referring to the main form combo box. Also other product data will show accordingly in text boxes. So far so good. However when I close the form and reopen it the subform combo box is blank, other text boxes still show the right values. If I remove the filter criteria for the subform combo then all fields show all data correctly. (However the combo box is unfiltered again 8-/)
    So somehow the 'criteria' prevents the combo to show the value that was previously chosen.



    Any idea what I am doing wrong?

    Thank u.
    Last edited by Gags; 02-27-2015 at 02:50 AM.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    It is blank because subform loads before main form (I know, weird but that's the way it is) therefore there is nothing for the combobox to reference as parameter. Requery the subform combobox in the main form Current event.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Gags is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Feb 2015
    Posts
    2
    Hi there June.. Thanks a lot..that did the trick! Feel quite stupid now..at the same time smarter ;p

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

Similar Threads

  1. Combo Box showing Blank Values
    By glen in forum Access
    Replies: 5
    Last Post: 11-24-2012, 09:44 AM
  2. Replies: 3
    Last Post: 06-02-2012, 07:39 PM
  3. Replies: 1
    Last Post: 03-02-2012, 10:24 AM
  4. Replies: 2
    Last Post: 07-26-2011, 08:26 AM
  5. Combo box shows blank on opening the Form
    By Alex Motilal in forum Forms
    Replies: 7
    Last Post: 01-15-2010, 11:59 AM

Tags for this Thread

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