Pull total in report from unassociated query

Hi.  I have an equipment/maintenance Tracking database.  I've created a form with 2 unbound fields.  The fields are referenced in a date field on a query to create a date range for a report run.  The report displays/prints all data that meets my criteria within the specified date range.  (All open maintenance due within date range).  I'm being asked for a percentage of open records due within my date range over all open maintenance records.   For instance; In August I have 30 records due but I have 248 open maintenance records total so I need to display the percentage (12%) in the report footer of the existing report.  Best I can think of is usign a subrepoert but this gives me a of of extra paper.  Is there any way to pull the total open count into this report that is already specific to only a range of data?

thanks
LVL 7
valmaticAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeffrey CoachmanMIS LiasonCommented:
Put a textbox on your Report.

Set the controlsouce to something like this:

=Dsum("SomeField","SomeQuery")

example:
=Dsum("Sales","qrySales")

JeffCoachman
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeffrey CoachmanMIS LiasonCommented:
...also you can provide a criteria to your Dsum...

But yu may be OK with what I posted above.

and example of criteria would be:
=Dsum("Sales","qrySales", "State=" & "'" & YourState & "'")
...for a text criteria

=Dsum("Sales","qrySales", "EmployeeID=" & YourEmployeeID)
...for a numerical criteria


JeffCoachman
0
valmaticAuthor Commented:
Hi Jeff,  I keep forgetting about the "D" commands for totaling.  I used Dcount instead and it worked great.  thanks
0
Jeffrey CoachmanMIS LiasonCommented:
Great!

Glad I could help...

Enjoy your weekend.

;-)

JeffCoachman
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.