Summing records selected in query

G

Guest

Ok, this maybe isn't the right place for this, but I posted it in reports
almost a month ago and got zero responses.

What I have is a report which we call our Job Log. We print this weekly to
tally up the number of jobs that have been entered into our system in the
previous week. We have an auto-fill field which puts the current date into a
record every time a new record is created, and to do this report, we search
based on a date range in that field. We track jobs by an assigned job number,
current typical jobs are something like 9235.
What I want to do is just add up the number of records that are included in
the report, so that we know in a quick glance the number of jobs we've
entered in a date range (week, month, year). Sounds simple, except not all of
our jobs get a number; some of them are sub-jobs, like 9235A, 9235B, etc. So
I can't just ask the report to add/subtract job#s because the "job number"
field isn't a numerical field.
I have an auto-number field (which isn't something users can't tamper with),
which I could use, but I don't know how to set up a query or an expression to
do this.
To clarify really quick; I have auto-number "Record#", an enter-the-text
"Job#" and what I'm trying to do is add up the records in a report after I
run a query on an auto-number "Date" field.

Any suggestions/advice is greatly appreciated.
Thanks,
Melissa
 
G

Guest

Melissa,

It sounds like you want to count the number of records, not sum the job
numbers.
 
T

tw

What about putting =count(*) as the ControlSource of a text box in the
report footer or other footer of the report.?
 
G

Guest

Count what? Literally put the star in there??

tw said:
What about putting =count(*) as the ControlSource of a text box in the
report footer or other footer of the report.?
 
G

Guest

Precisely. Count(*) does just that- it counts the records. So, although you
could put a field name between the '()', it doesn't really make any
difference.

Sorry to have jumped in to your answer tw.
 
G

Guest

Ok, I tried this, and I get "Error#" :( Do I *need* to put a field name or
something in there?
 
G

Guest

CORRECTION!!
I moved this box to the Report Footer section rather than the Page Footer
section and it's working. Going to try to get it in the "real" database now.

Thanks bunches!!
Melissa
 
T

tw

no problem

Chaim said:
Precisely. Count(*) does just that- it counts the records. So, although
you
could put a field name between the '()', it doesn't really make any
difference.

Sorry to have jumped in to your answer tw.
 

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

Top