Results 1 to 3 of 3
  1. #1
    brownk is offline Advanced Beginner
    Windows 7 64bit Access 2003
    Join Date
    May 2012
    Location
    Evansville, IN
    Posts
    56

    Question Between function


    Hi guys. I have a query that runs a report. In the 'Date' section i have my criteria set to 'Between [start date] and [end date]' so whenever the report is ran, the user has the option of viewing entries for a specified date. Is there anyway to set it up so if the user decides to just hit cancel when called to enter a start and end date, it will simply display ALL entries on the report? I know, I know, the user can just put in something like start date 1-1-1111 end date 1-1-2050; but i have been asked by my boss to try and get this hammered out. Any help will be appreciated. Thanks!

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Try this:
    Between NZ([start date],#1/1/1900#) and NZ([end date],#12/31/2099#)

  3. #3
    brownk is offline Advanced Beginner
    Windows 7 64bit Access 2003
    Join Date
    May 2012
    Location
    Evansville, IN
    Posts
    56
    Thanks. Works great and is exactly what i was looking for!

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

Similar Threads

  1. DDE Function gone?
    By djcomlab in forum Programming
    Replies: 7
    Last Post: 11-23-2010, 11:01 AM
  2. IIf function
    By seb in forum Queries
    Replies: 4
    Last Post: 11-15-2010, 05:28 PM
  3. Now() function
    By shexe in forum Queries
    Replies: 1
    Last Post: 11-11-2010, 09:59 AM
  4. Max function???
    By kaite07 in forum Queries
    Replies: 1
    Last Post: 11-10-2010, 05:20 PM
  5. Want function to get current function name
    By Davis DeBard in forum Programming
    Replies: 2
    Last Post: 08-13-2009, 05:02 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