Results 1 to 3 of 3
  1. #1
    Desstro's Avatar
    Desstro is offline Competent Performer
    Windows XP Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    185

    Question Specify return value

    I have a query that is set to return data, ("startdate") by criteria of =date().



    How can I also set the criteria for another field, ("enddate") to return data that is greater than the system date?

    I tried setting enddate criteria to "=>Date()" which obviously didn't work.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Try

    >=Date()
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Desstro's Avatar
    Desstro is offline Competent Performer
    Windows XP Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    185
    Thanks, wasnt quite what I was looking for but it got me pointed in the right direction. For forum purposes I will explain what I was trying to do as well as the solution I found to make it happen.

    I have in a query

    "Job#"---"Startdate"---"Enddate"---among other options

    What I was trying to do was to query any job that is current between the start and end dates.

    The solution was to set the criteria for "startdate" to "=Date() or <=Date()"

    AND

    set the criteria for "enddate" to "=Date() or >=Date()"

    Hope this helps somebody in the future, and thanks again pbaldy...you're a guru!

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

Similar Threads

  1. Return without Gosub
    By tomk in forum Access
    Replies: 2
    Last Post: 06-11-2010, 03:15 PM
  2. Tax Return Application
    By Hobbledehoy in forum Access
    Replies: 1
    Last Post: 04-18-2010, 05:41 AM
  3. How do I return the maximum value
    By kam in forum Queries
    Replies: 2
    Last Post: 03-17-2010, 07:38 AM
  4. Return value of row above
    By marimar1097 in forum Access
    Replies: 7
    Last Post: 10-20-2009, 08:06 AM
  5. I need to return a value for calculation.
    By FestoAccessBuilder in forum Access
    Replies: 1
    Last Post: 02-22-2009, 09:58 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