P
Paige
I have a database with 600,000 records. I need to create
a summary report that summarizes coded fields and breaks
them down by their values by quarter. I created queries
for each of the values but I am having to make subreports
to get the values to print by quarter. The problem is
that I am up to 8 subreports already and it is taking
hours to run. Is there a better way to summarize the
data by value without having to pull from 7 queries?
Would the DLOOKUP/DSUM functions be helpful here?
Here is an example of what I need to do:
Hospital A Q1 Q2 Q3 Q4
Discharges
Gender (code F or M)
Male 3 3 2 1
Female 5 3 1 4
Admit Source (Codes 1-6)
ER 3 2 2 1
Inpatient 2 4 6 1
Referral 3 2 1 2
Self 1 2 3 4
Discharge Status (codes 10 thru 60)
Discharged Home 2 2 3 5
Deceased 1 2 5 3
Transferred 3 4 5 6
Charges ($$)
Op Room $400 $500 $600 $700
Lab $333 $322 $567 $987
..
..
..
I have about 10 more categories I need to include - each
category can have a number of values!
Any help is appreciated. I am currently just running the
report for 2 hospitals and it takes over 10 minutes to
run and then additional time to format the report pages!
Help!
Paige Clements
a summary report that summarizes coded fields and breaks
them down by their values by quarter. I created queries
for each of the values but I am having to make subreports
to get the values to print by quarter. The problem is
that I am up to 8 subreports already and it is taking
hours to run. Is there a better way to summarize the
data by value without having to pull from 7 queries?
Would the DLOOKUP/DSUM functions be helpful here?
Here is an example of what I need to do:
Hospital A Q1 Q2 Q3 Q4
Discharges
Gender (code F or M)
Male 3 3 2 1
Female 5 3 1 4
Admit Source (Codes 1-6)
ER 3 2 2 1
Inpatient 2 4 6 1
Referral 3 2 1 2
Self 1 2 3 4
Discharge Status (codes 10 thru 60)
Discharged Home 2 2 3 5
Deceased 1 2 5 3
Transferred 3 4 5 6
Charges ($$)
Op Room $400 $500 $600 $700
Lab $333 $322 $567 $987
..
..
..
I have about 10 more categories I need to include - each
category can have a number of values!
Any help is appreciated. I am currently just running the
report for 2 hospitals and it takes over 10 minutes to
run and then additional time to format the report pages!
Help!
Paige Clements