R
Rossz
I'm working on a report containing magazine delivery information. The
associated query obtains the location id, publication number, magazine
count, etc. Each location can receive one or more different magazines. I
am trying to get the number of delivery stops. Using Count([Location ID])
returns the wrong value as it is counting each magazine as an individual
stop even though it has the same location id. GROUP BY doesn't work since
the combination of Location ID and Publication Number makes the row unique.
I tried creating a seperate query that only contains the group by location
ID and doing a count of that, but I can't get the textbox to reference a
different query than the primary one as its control source, nor can I get
it to use a simple query there.
Location ID, Pub#
1, 1
1, 2
2, 1
3, 2
For this, there are 3 stops, with location 1 getting two magazines, but
Count([Location ID]) returns 4.
associated query obtains the location id, publication number, magazine
count, etc. Each location can receive one or more different magazines. I
am trying to get the number of delivery stops. Using Count([Location ID])
returns the wrong value as it is counting each magazine as an individual
stop even though it has the same location id. GROUP BY doesn't work since
the combination of Location ID and Publication Number makes the row unique.
I tried creating a seperate query that only contains the group by location
ID and doing a count of that, but I can't get the textbox to reference a
different query than the primary one as its control source, nor can I get
it to use a simple query there.
Location ID, Pub#
1, 1
1, 2
2, 1
3, 2
For this, there are 3 stops, with location 1 getting two magazines, but
Count([Location ID]) returns 4.