Dec 3, 2010 #1 reacha Programmer Jun 9, 2010 83 US I have a report which is grouped by username first and after that grouped by auditstamp for each week. now what i need to write in the record selection to get last4weeks data Please help me out!! Thanks, reacha
I have a report which is grouped by username first and after that grouped by auditstamp for each week. now what i need to write in the record selection to get last4weeks data Please help me out!! Thanks, reacha
Dec 3, 2010 #2 Turkbear Technical User Mar 22, 2002 8,631 US Hi, Is the auditstamp field a DATE field? If so then a selection formula something like auditstamp In DateAdd(w,-4,auditstamp) to CurrentDate should get that range To Paraphrase:"The Help you get is proportional to the Help you give.." Upvote 0 Downvote
Hi, Is the auditstamp field a DATE field? If so then a selection formula something like auditstamp In DateAdd(w,-4,auditstamp) to CurrentDate should get that range To Paraphrase:"The Help you get is proportional to the Help you give.."
Dec 3, 2010 Thread starter #3 reacha Programmer Jun 9, 2010 83 US yes it is a datefield... but this didn't worked and i tried something like Last4WeeksToSun Thanks, reacha Upvote 0 Downvote
yes it is a datefield... but this didn't worked and i tried something like Last4WeeksToSun Thanks, reacha
Dec 3, 2010 #4 VKZIMM Technical User Jan 9, 2008 45 US Try Auditstamp in DateAdd("ww", -4, currentdate) to currentdate Four weeks prior from today's date. Upvote 0 Downvote
Dec 3, 2010 #5 Turkbear Technical User Mar 22, 2002 8,631 US Hi, Good catch VKZIMM! I should have looked at my logic more closely. To Paraphrase:"The Help you get is proportional to the Help you give.." Upvote 0 Downvote
Hi, Good catch VKZIMM! I should have looked at my logic more closely. To Paraphrase:"The Help you get is proportional to the Help you give.."
Dec 3, 2010 Thread starter #6 reacha Programmer Jun 9, 2010 83 US i am getting different values if i use Auditstamp = Last4WeeksToSun and Auditstamp in DateAdd("ww", -4, currentdate) to currentdate what is the difference in these two and some times i am getting more than 4 weeks if i use any one of those. I need to get exactly Last 4 weeks Thanks, reacha Upvote 0 Downvote
i am getting different values if i use Auditstamp = Last4WeeksToSun and Auditstamp in DateAdd("ww", -4, currentdate) to currentdate what is the difference in these two and some times i am getting more than 4 weeks if i use any one of those. I need to get exactly Last 4 weeks Thanks, reacha
Dec 3, 2010 #7 Turkbear Technical User Mar 22, 2002 8,631 US Hi, Last4WeekstoSun can be different from 4 weeks before CurrentDate if CurrentDate is not Sunday. Try: AuditStamp >= (CurrentDate - 28 ) To Paraphrase:"The Help you get is proportional to the Help you give.." Upvote 0 Downvote
Hi, Last4WeekstoSun can be different from 4 weeks before CurrentDate if CurrentDate is not Sunday. Try: AuditStamp >= (CurrentDate - 28 ) To Paraphrase:"The Help you get is proportional to the Help you give.."