Results 1 to 3 of 3
  1. #1
    gg80 is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Posts
    328

    Filter Critiria Storage

    I am having problem with access 2003. FormA opens and filters FormB (continuous form). The filter criteria could be a customeID, BoatName, or ModelID.



    From FormB, the user can open FormC.

    In A2003, I found that I had to close FormB before opening formC. If I didn't, some of the actions of formC overloaded A2003 and gave me the "Cannot open another database etc." message. Now, when I reopen FormB from FormC, the original filter has disappeared and the user sees a very long useless list of items.

    In A2007, the filter stays with FormB, even after it is closed and opened.

    I tried to store a filter expression in an unbound control in formC for use on reopening formB, but can't seem to find how to make it work or find anything on google that helps. Any help much appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    What is the code that sets the unbound textbox? Another option is global variable. Beware, global variables are a headache in debugging.

    What is the code to reopen FormB?
    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
    gg80 is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Posts
    328
    Weird, but in a way, yoo solved it. I was setting up a sample to send you when I inadverently did the right thing. I had thought that the stored filter statement in the unbound control needed the same quotation marks required in the VBA statement. Apparently, xyz=1256, without quotation marks, is all that is needed.

    Thanks much for the quick response and sorry to have bothered you.

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

Similar Threads

  1. Record Storage DB Relationship Help
    By MintChipMadness in forum Database Design
    Replies: 12
    Last Post: 08-02-2012, 02:56 PM
  2. Replies: 28
    Last Post: 03-08-2012, 06:47 PM
  3. Loop and Max. storage corrupted db
    By boywonder in forum Programming
    Replies: 6
    Last Post: 11-15-2011, 09:33 PM
  4. General Storage Advice
    By GraemeG in forum Access
    Replies: 1
    Last Post: 03-13-2011, 02:01 PM
  5. PDF Storage
    By slash75 in forum Access
    Replies: 0
    Last Post: 04-18-2007, 02:51 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