May 19, 2005 #1 Monkey820 Technical User Dec 11, 2003 62 US Hi! I need a formula to select the last 7 days of records. I have a report that will run automatically and I need it to pull the past week based on a date field. Any help is appreciated. Micky CRW 8.5 OS WinXP
Hi! I need a formula to select the last 7 days of records. I have a report that will run automatically and I need it to pull the past week based on a date field. Any help is appreciated. Micky CRW 8.5 OS WinXP
May 19, 2005 #2 synapsevampire Programmer Mar 23, 2002 20,180 US Go to Report->Edit Selection Formula->Record and palce: ( {table.field} >= currentdate-6 and {table.field} <= currentdate ) Replacing table field with your date field. Note that this includes today, if you want the previous 7 days, use: ( {table.field} >= currentdate-7 and {table.field} <= currentdate-1 ) -k Upvote 0 Downvote
Go to Report->Edit Selection Formula->Record and palce: ( {table.field} >= currentdate-6 and {table.field} <= currentdate ) Replacing table field with your date field. Note that this includes today, if you want the previous 7 days, use: ( {table.field} >= currentdate-7 and {table.field} <= currentdate-1 ) -k
May 20, 2005 Thread starter #3 Monkey820 Technical User Dec 11, 2003 62 US PERFECT!!! Thank you!! Upvote 0 Downvote