Query bi-weekly

R

Randy

I have a data base for my personal budget and would like to group the entries
bi-weekly. I would also like them to appear on the same page of a report .
For instance, 1/1/2008 thru 1/15/2008 at the top of the report and 1/16/2008
tru 1/31/2008 at the bottom. I would also like to have seperate totals for
each group and a grand total at the bottom for the month. Does this make
sence? Does anyone have any ideas?
thanks a lot
 
K

KARL DEWEY

Use a query like this for report --
SELECT YourTable.COMPONENTA, Count(YourTable.COMPONENTB) AS
CountOfCOMPONENTB, Sum(YourTable.COMPONENTC) AS SumOfCOMPONENTC,
Format([YourDate],"yyyymm") AS YearMonth, IIf(Day([YourDate]) Between 1 And
15,1,2) AS PartOfMonth
FROM YourTable
GROUP BY YourTable.COMPONENTA, Format([YourDate],"yyyymm"),
IIf(Day([YourDate]) Between 1 And 15,1,2);

Use the report Sorting and Grouping to group on YearMonth and again on
PartOfMonth.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Query bi-weekly 1
Complex Record Selection 1
Current bi-weekly total 2
query to sort data 3
query to sort nos 2
Include empty values in crosstab query 5
top 5 days for each user 12
What's Wrong With This Query? 6

Top