frankbutcher
Registered User.
- Local time
- Today, 21:23
- Joined
- Aug 6, 2004
- Messages
- 192
Hi All.
I have looked through the existing threads....but with no joy to the problem I have.
I have a report that is run from a query, that shows the job details
for each job (ID_number), and it also adds up the cost of materials used
on that job. This info is stored on 2 different tables, with ID_number
as the link.
So, on a report that is run for the chosen month, it could show 10
jobs, and it will show the total material amount for each job.
This is all OK, but what I would like to do is have a 'count' option in the footer
of the report. I normal use =count(*) but when I use this it doesn't
seem to work.
If, for example, there are 10 jobs in a month, and job ID_number 10 has
2 materials booked against that job, it will count ID_Number 10 twice, and make the total jobs for that month 11.
I have tried hiding duplicates, changing the sort and grouping, placing
=count(*) in different places, and using =count(ID_number) but nothing
seems to work!!
Is count the right one to use? I looked at a few threads that mention sum? Do I have to change something in the query? (but then I need all
materials carried through to the report as this is where I do the total cost)
Hope this makes sense.
Frank.
I have looked through the existing threads....but with no joy to the problem I have.
I have a report that is run from a query, that shows the job details
for each job (ID_number), and it also adds up the cost of materials used
on that job. This info is stored on 2 different tables, with ID_number
as the link.
So, on a report that is run for the chosen month, it could show 10
jobs, and it will show the total material amount for each job.
This is all OK, but what I would like to do is have a 'count' option in the footer
of the report. I normal use =count(*) but when I use this it doesn't
seem to work.
If, for example, there are 10 jobs in a month, and job ID_number 10 has
2 materials booked against that job, it will count ID_Number 10 twice, and make the total jobs for that month 11.
I have tried hiding duplicates, changing the sort and grouping, placing
=count(*) in different places, and using =count(ID_number) but nothing
seems to work!!
Is count the right one to use? I looked at a few threads that mention sum? Do I have to change something in the query? (but then I need all
materials carried through to the report as this is where I do the total cost)
Hope this makes sense.
Frank.