Results 1 to 4 of 4
  1. #1
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727

    subform not clearing


    All, using access 2010. I have a subform on a main form. I have a combo box filter the subform. When I close and reopen the form; data remains from the last filter. I have done this several times for other databases and can’t correct this. What’s going on? Help please.

  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,598
    Is the combobox bound to field?
    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
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    the combo box is unbound w/query as a recordsource

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,598
    You mean RowSource.

    Sounds like the form is being saved with the last applied filter in the Filter property. How do you close the form? With DoCmd.Close? Try:

    DoCmd.Close acForm, "form name", acSaveNo

    Or make sure the FilerOnLoad property is set to No.
    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.

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

Similar Threads

  1. cbo not clearing
    By buckwheat in forum Access
    Replies: 1
    Last Post: 06-26-2013, 03:51 PM
  2. Clearing a subform filter
    By Fish218 in forum Forms
    Replies: 1
    Last Post: 03-28-2013, 02:25 PM
  3. Clearing a Form
    By dabatman in forum Forms
    Replies: 4
    Last Post: 01-20-2012, 11:51 AM
  4. clearing a form
    By macsterling in forum Forms
    Replies: 0
    Last Post: 07-31-2008, 10:38 AM
  5. Clearing the clipboard with VBA?
    By Simon Sweet in forum Programming
    Replies: 1
    Last Post: 04-17-2008, 03:16 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