DSum vs Multiple Queries

  • Thread starter Thread starter michael c
  • Start date Start date
M

michael c

I have a list of product orders that shows Customer
Number, Order Date, Order Amount, and Product. I'm
currently creating separate queries for Grouping order by
Customer Number and Date for:

Current Month To Date
Current Quarter To Date
Current Year To Date
Prior Month To Date
Prior Quarter To Date
Prior Year To Date

These are ultimately linked together and displayed on a
report so that I can see what a customer has order for
different time periods. This makes for a messy database
window, especially when I start grouping further by
product. I tried using DSum on the report but it seems
pretty slow (my recordset is about 2M lines). Any
suggestions? THANKS!!!
 
Hey Michael,

It sounds like you could possibly achieve the same result using only
ONE query, if that query is a CROSSTAB type.

What this does, basically, is to "swing" rows of data (ie your date
ranges) into column headings, and then give you numbers (ie totals,
NOT detail-data) in each of those ranges.

The best place to start if you're unfamiliar is the Access on-line
help, followed by using the wizard to try creating a couple of queries
for you - after the first couple yuou'll get the idea of what you can
do, and the effects of the changes you can make...

HTH.
 

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

Table/query layout trouble 2
dsum - 1
"Rolling" quarterly average 3
Query 2
Problem with Query Calculation 2
Running Total 10
Dsum on a report 8
DSUM Problem With Dates 5

Back
Top