Results 1 to 4 of 4
  1. #1
    KWarzala is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    35

    Date/Time Criteria

    I have a Date/Time field in a table that i cannot change. I am trying to query the table, and have parameters Between[Start Date]And[End Date] but since the time is included in the same field if i try and query Between [6/1/10]And[6/2/10] it isn't giving me the data for 6/2 since it is probably using 0:00:00 AM as the time.

    Is there a way to create the parameter to be something like:
    Between[Start Date]&"0:00:00 AM" AND [End Date]&"11:59:59 PM"

    I've tried a bunch of different ways, and i can't get it to work



    Thanks!

  2. #2
    KWarzala is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Sep 2009
    Posts
    35
    Nevermind, i went back and tried one more thing and it worked!

    Between [Start Date?] And [End Date?]+" 11:59:59 PM"

  3. #3
    _SD_ is offline Novice
    Windows 7 Access 2003
    Join Date
    Jun 2010
    Posts
    1
    Hi!
    Between #13.10.2009# & " " & TimeSerial(0;0;0) And #11.11.2009# & " " & TimeSerial(23;59;59)

  4. #4
    kimmer is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    100
    or
    >=[start] And <[end]+1

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

Similar Threads

  1. Query criteria, add 5 months to date
    By thart21 in forum Queries
    Replies: 1
    Last Post: 03-29-2010, 05:09 PM
  2. Date + Time = Date Time
    By TundraMonkey in forum Access
    Replies: 3
    Last Post: 07-02-2009, 09:30 PM
  3. Date Criteria
    By tcollins02 in forum Queries
    Replies: 1
    Last Post: 09-09-2008, 08:27 AM
  4. date/time field
    By James890 in forum Database Design
    Replies: 1
    Last Post: 04-18-2007, 07:51 AM
  5. Access Date/Time....I need a "generic" date.
    By beastmaster in forum Access
    Replies: 2
    Last Post: 12-29-2005, 12:55 PM

Tags for this Thread

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