Results 1 to 3 of 3

Thread: OpenReport code

  1. #1
    2 Star Lounger
    Join Date
    Apr 2008
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am trying to use the OpenReport code to open a report but I am having trouble with the Where criteria.

    This is the code:

    DoCmd.OpenReport "rptVisionScreeningReportDoneNotDone", acViewPreview, , "[Date] = 'Is Null'"

    I want the report to open when the query field [Date] is Null. I have tried several varaiations of the above code by it still does not work.

    Can someone help?

    Thanks.

    Paul

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Try

    ..., "[Date] Is Null"

  3. #3
    2 Star Lounger
    Join Date
    Apr 2008
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks. That works!

    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •