By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,729 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

Create Weekly Report in Microsoft Access

P: 42
I am attempting to create several weekly reports that look at the last seven days exluding the current day, but I have not been able to successfull pull the correct information. I use the several queiries to idenify the matching data for the alloted timeframe. I use a counter to count the number of days from this day to the last seven then create a new field to hold the count which then I use a greater than criteria of <8 which gives every record with 7 of less omitting 0. This seem to work until each section of my report gives me different counts/num.
Jun 28 '10 #1
Share this Question
Share on Google+
4 Replies

Expert 100+
P: 931
Please post the cost that you're using to attempt this. Then we can all be on the same page about where you're going wrong and try to help you. Thanks.

Jun 28 '10 #2

Expert Mod 15k+
P: 31,769
As Pat implies, it's very difficult to work with a question where you don't share the data. As a simple illustration though, and assuming you have a field called [InfoDate], you would want something similar to :
Expand|Select|Wrap|Line Numbers
  1. SELECT ...
  2. FROM   ...
  3. WHERE  [InfoDate] Between DateAdd('d',-7,Date())
  4.                   And     DateAdd('d',-1,Date())
Jul 5 '10 #3

P: 42
I figured it out. I needed to account for the current date information in my queiries.
Jul 8 '10 #4

Expert Mod 15k+
P: 31,769
I'm not sure I follow, but if it works for you, then fine :)
Jul 9 '10 #5

Post your reply

Sign in to post your reply or Sign up for a free account.