Results 1 to 2 of 2
  1. #1
    mcmcd99 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    65

    Two WHERE conditions in OpenReport

    Hello, I have a button set up to open a report by date. I would like to add a second condition to open it by type as well, so I can have the report show only [Enter Type] type entries on a specific date.



    Here is what I have in the macro editor:

    OpenReport

    Where Condition: [Reports]![rpt_date]![tsdate]=[Enter Date: MM/DD/YY] And [Reports]![rpt_date]![type]=[Enter Type]

    It lets me put in the entries, but doesn't show me the results.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I would not use popup input parameters - can't validate user input. Use controls on a form for user input and reference those as parameters.


    Where Condition: [tsdate]=[Enter Date: MM/DD/YY] And [type]=[Enter Type]
    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. Help with an OpenReport Where Condition
    By hehrerh in forum Reports
    Replies: 1
    Last Post: 06-29-2017, 08:56 AM
  2. doCmd.OpenReport - Multiple Where Conditions
    By jml9012 in forum Programming
    Replies: 10
    Last Post: 05-20-2013, 08:45 PM
  3. Need help w/ docmd.openreport
    By jwill in forum Reports
    Replies: 3
    Last Post: 06-04-2012, 09:49 PM
  4. OpenReport cancelled
    By wharting in forum Reports
    Replies: 15
    Last Post: 11-11-2011, 02:34 PM
  5. OpenReport function
    By grad2009 in forum Access
    Replies: 8
    Last Post: 05-22-2010, 10:43 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