Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Jan 2004
    Posts
    196
    Thanks
    1
    Thanked 0 Times in 0 Posts

    query w/ date criteria (2003)

    I am running a query that asks for Monday's date and then Sunday's date, is there a way to enter only one of these two dates and still have the query run correctly. When I use Between [Monday] And [Monday]+6, it tells me that the expression is typed incorrectly or too complex. Can someone shed some light on this for me, please.

    thanks,
    Jackal

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

    Re: query w/ date criteria (2003)

    Try declaring the parameter explicitly:
    - Open the query in design view.
    - Select Query | Parameters...
    - Under Parameter, enter the parameter exactly as used in the criteria line, i.e. [Monday]
    - Under Data Type, select Date/Time.
    - Click OK.
    You should now be able to use Between [Monday] And [Monday]+6 as criteria.

  3. #3
    2 Star Lounger
    Join Date
    Jan 2004
    Posts
    196
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: query w/ date criteria (2003)

    Hans, as always, thanks again.

    Jackal

Posting Permissions

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