Results 1 to 2 of 2
  1. #1
    cask2010 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    4

    Can a BrowseTo Macro use multiple where conditions to further refine the displayed data?

    Fair warning, I'm quite new to Access so I appreciate any help I can get immensely. Thanks ahead of time. Explaining what I'm trying to do via text seems difficult but here goes nothing:


    I'm building a database for an Auto Auction. I'm using a navigation form to allow the user to select which part of the database they're working with. One section of the database [Auctions] is for filtering transactions based on what 'auction date' they took place on, whether the transaction is complete, and other criteria (such as whether the titles have come in or not).

    To do this I've created a form called frmAuctions, which has: a combo box [cboSelectAuction], a button to create a new 'auction date', as well as a subform container that holds a form named frmTransactionList. This form has: a button to create a new transaction, as well as a subform container that holds a datasheet [frmTransactionListDS] displaying all of the transactions that took place on a specific 'auction date'.

    Here's a snippet to clarify this structure if it helps:
    Click image for larger version. 

Name:	BrowseTo Multiple Where Conditions Help.jpg 
Views:	15 
Size:	76.8 KB 
ID:	29360
    So here's where I'm hitting a wall. I've learned to use the BrowseTo Macro to filter the datasheet (frmTransactionListDS) based on which 'Auction Date' is selected using cboSelectAuction. My problem is that I also have a button (Show Incomplete) on frmTransactionList that, when clicked, I would like to execture a BrowseTo Macro that filters frmTransactionListDS to show only the transactions where "Sale Complete?" = False. How do I make this button run this BrowseTo Macro without the database forgetting which 'auction date' I'm interested in?



    Sorry I'm so long winded, I just thought the context would help. Cheers!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    Don't think a macro can do this. Use VBA. Review http://www.allenbrowne.com/ser-62.html
    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. VBA If with multiple conditions
    By Swatskeb in forum Modules
    Replies: 2
    Last Post: 05-22-2014, 04:22 PM
  2. Macro Search Form : BrowseTo
    By char in forum Access
    Replies: 0
    Last Post: 11-19-2012, 04:41 PM
  3. Help with Macro Conditions
    By sai_rlaf in forum Access
    Replies: 3
    Last Post: 01-19-2012, 04:25 PM
  4. Using iif for Multiple Conditions
    By kwilbur in forum Access
    Replies: 5
    Last Post: 12-30-2011, 01:52 PM
  5. Refine my formula, please
    By DianeG in forum Queries
    Replies: 4
    Last Post: 05-19-2010, 09:20 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