Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    hapm is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    197

    what is the type of DATECOLUMN?

  2. #17
    hapm is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    197
    Can you please copy the full query from SQL view? As you wanted to go back 90 days perhaps it's better to use DateAdd("d",-90,Date())

  3. #18
    Shilabrow is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    May 2014
    Posts
    34
    Please assist in getting this right. I am trying to get data for 3 months to date using computer as reference time. Thanks - All help appreciated. The below query gives me 3 month data excluding current month but I want 3 months to date records.

    [Purchase Orders].[Creation Date] BETWEEN DateSerial(Year(Date()),Month(Date())-3,1) AND DateSerial(Year(Date()),Month(Date()),0)

  4. #19
    hapm is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    197
    Use the DateAdd approach. If there is a data type missmatch it shouldn't be the fault of DateAdd in general. DateAdd is the way to go.

  5. #20
    Shilabrow is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    May 2014
    Posts
    34
    hapm, thanks - but when I use DateAdd("d",-90,Date()), I get nothing at all Also I used DateAdd("m",-3,Date()) And Date() -- still nothing. Am I missing something? I appreciate your help. Thanks!

  6. #21
    hapm is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    197
    Not sure, please show the full query with DateAdd

  7. #22
    Shilabrow is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    May 2014
    Posts
    34
    O.K. Hapm - Thanks, after so much back and forth. I made adjustment to ur last query and used this; since Date() is to date and it giving about what I need. Thanks to all for support

    Between DateSerial(Year(Date()),Month(Date())-2,1) And Date().

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 43
    Last Post: 08-06-2014, 08:21 PM
  2. Replies: 5
    Last Post: 02-07-2014, 09:53 AM
  3. Replies: 3
    Last Post: 08-18-2012, 03:25 AM
  4. Add one day to prior record's date/ how??
    By mkfloque in forum Access
    Replies: 3
    Last Post: 05-30-2012, 04:44 AM
  5. Date Parameter Help - prior 13 weeks
    By acw1980 in forum Access
    Replies: 1
    Last Post: 11-12-2009, 10:30 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