B
Bradley C. Hammerstrom
Access2000
A report is based on qryPBIList with three fields: Defect, FileName and
PlaceName. The report is grouped on Defect. The Detail section shows all the
FileNames and PlaceNames (which can be listed more than once) for each
Defect.
I want a calculated field (txtUnique) in the Group Header, next to Defect,
that returns a count of unique PlaceNames for that Defect.
I tried the following in txtUnique:
=DCount("PlaceName", "qryUnqPlaces")
where qryUnqPlaces has two fields, both from the same query as the Report:
Field: PlaceName
Table: qryPBIList
and,
Field: Defect
Table: qryPBIList
Criteria: [Reports]![rptPBI's].[Detail].Defect
This query seems to work, but the calculated field in the Report returns
#Error.
Any guesses?
Brad H.
A report is based on qryPBIList with three fields: Defect, FileName and
PlaceName. The report is grouped on Defect. The Detail section shows all the
FileNames and PlaceNames (which can be listed more than once) for each
Defect.
I want a calculated field (txtUnique) in the Group Header, next to Defect,
that returns a count of unique PlaceNames for that Defect.
I tried the following in txtUnique:
=DCount("PlaceName", "qryUnqPlaces")
where qryUnqPlaces has two fields, both from the same query as the Report:
Field: PlaceName
Table: qryPBIList
and,
Field: Defect
Table: qryPBIList
Criteria: [Reports]![rptPBI's].[Detail].Defect
This query seems to work, but the calculated field in the Report returns
#Error.
Any guesses?
Brad H.