May 3, 2001 #1 ickman Instructor Joined May 3, 2001 Messages 1 Location CA I am trying to create a query that will pull information for a specific date and will include info for the next thirty days after that date. Basically what I need is information=infoDate + 30 days I hope I am making myself clear any help would be appreciated.
I am trying to create a query that will pull information for a specific date and will include info for the next thirty days after that date. Basically what I need is information=infoDate + 30 days I hope I am making myself clear any help would be appreciated.
May 3, 2001 #2 Cagliostro Programmer Joined Sep 13, 2000 Messages 4,226 Location GB use where DateDiff(d,onedate,otherdate)<30 John Fill ivfmd@mail.md Upvote 0 Downvote
May 3, 2001 #3 tlbroadbent MIS Joined Mar 16, 2001 Messages 9,982 Location US In MS Access the query could be formatted this way. Where MyDate Between InfoDate And Dateadd("dd", 30, InfoDate) If you use the query designer you would put the following in the criteria. Between InfoDate And Dateadd("dd", 30, InfoDate) Between is inclusive so the query would select record with MyDate=InfoDate, MyDate=InfoDate+30 and all dates between. Terry http://members.home.net/tlbroadbent/index.htm Upvote 0 Downvote
In MS Access the query could be formatted this way. Where MyDate Between InfoDate And Dateadd("dd", 30, InfoDate) If you use the query designer you would put the following in the criteria. Between InfoDate And Dateadd("dd", 30, InfoDate) Between is inclusive so the query would select record with MyDate=InfoDate, MyDate=InfoDate+30 and all dates between. Terry http://members.home.net/tlbroadbent/index.htm