Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2007
    Posts
    1

    Question Unanswered: crosstab query with a datetime field

    I need to create a crosstab query which will be filtered by date only (not datetime). How can I get access to only see the date (not time) in my query?

  2. #2
    Join Date
    Apr 2005
    Location
    Zagreb - Croatia
    Posts
    372
    Look below.
    Last edited by MStef-ZG; 09-20-07 at 06:02.

  3. #3
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    The following function will "remove" the time value of a given date.
    Code:
    dateadd(dd,0, datediff(dd,0,[Enter Date]))
    George
    Home | Blog

  4. #4
    Join Date
    Apr 2005
    Location
    Zagreb - Croatia
    Posts
    372
    In query criteria put; Like[Enter date] & "*"

  5. #5
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    I don't believe that will work MStef.
    George
    Home | Blog

Posting Permissions

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