May 3, 2001 #1 ickman Instructor May 3, 2001 1 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 Sep 13, 2000 4,226 GB use where DateDiff(d,onedate,otherdate)<30 John Fill ivfmd@mail.md Upvote 0 Downvote
May 3, 2001 #3 tlbroadbent MIS Mar 16, 2001 9,982 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