Results 1 to 2 of 2
  1. #1
    eww is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    125

    Problems with Report Filter


    For some reason the filter button in the ribbon doesn't work right with this report I'm opening. The command for the button is:

    DoCmd.OpenReport "rptCompletedSubmittals", acViewReport, , "JobNumber = '" & Forms!frmAllProjects!txtJobNumber & "' AND (ReturnedSubmittalDate Is Not Null OR WaivedApprovals Is Not Null)", acWindowNormal

    However it seems to be working fine when I make it:

    DoCmd.OpenReport "rptCompletedSubmittals", acViewReport, , "JobNumber = '" & Forms!frmAllProjects!txtJobNumber & "' AND ReturnedSubmittalDate Is Not Null", acWindowNormal

    Am I using the parentheses wrong? Or is it the "OR" in there. I need to filter so that it shows if one of those is not null, but not necessarily both.

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    you may try to put more parentheses:
    DoCmd.OpenReport "rptCompletedSubmittals", acViewReport, , "JobNumber = '" & Forms!frmAllProjects!txtJobNumber & "' AND ((ReturnedSubmittalDate Is Not Null ) OR (WaivedApprovals Is Not Null))", acWindowNormal

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

Similar Threads

  1. Replies: 1
    Last Post: 03-31-2010, 11:57 PM
  2. How to Filter Report
    By mikel in forum Reports
    Replies: 2
    Last Post: 08-28-2009, 10:11 AM
  3. Problems with SUM in Report Footer
    By bonetakc in forum Forms
    Replies: 1
    Last Post: 07-30-2009, 04:53 AM
  4. Problems adding a drop down box to report/query
    By rachelm920 in forum Access
    Replies: 1
    Last Post: 05-14-2009, 09:19 AM
  5. Problems changing report design
    By Peter O in forum Access
    Replies: 0
    Last Post: 12-15-2008, 03:01 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