Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Apr 2008
    Posts
    188
    Thanks
    0
    Thanked 0 Times in 0 Posts

    OpenReport code (2002)

    I am trying to open a report where two fields in the report query are set to certain values.

    ApplyDate is not null and the grade is *

    The code is something like this but I do not have the grade part right at the end. Can someone help?

    DoCmd.OpenReport "rptApplicationDataAll", acViewPreview, , "Applydate is not Null" And Grade = "*"

    Thanks.

    Paul

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

    Re: OpenReport code (2002)

    Try
    <code>
    DoCmd.OpenReport "rptApplicationDataAll", acViewPreview, , "Applydate Is Not Null And Grade = '*'"
    </code>
    Because the entire where-condition is enclosed in double quotes, I used single quotes around the asterisk.

Posting Permissions

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