Harry Shmedlap
Registered User.
- Local time
- Tomorrow, 00:05
- Joined
- Aug 9, 2005
- Messages
- 51
I am a beginner with aggregate functions.
I have two tables, one describing parts, and one describing assemblies that use those parts:
tblParts show all the part descriptions, including fldPartNumber.
tlbWhereUsed shows zero or more fldAssemblyNumber records for each fldPartNumber.
I want a query that shows, for each record of tblParts, the number of assemblies that use that part. I specifically want to do this with an aggregate function:
DCount("*","tlbWhereUsed ","[tlbWhereUsed].[fldPartNumber]=[tblParts].[fldPartNumber]")
but I don't know where to put this function call in the query grid.
(I do not want to do this in VBA, if I don't need to).
Thanks in advance...
I have two tables, one describing parts, and one describing assemblies that use those parts:
tblParts show all the part descriptions, including fldPartNumber.
tlbWhereUsed shows zero or more fldAssemblyNumber records for each fldPartNumber.
I want a query that shows, for each record of tblParts, the number of assemblies that use that part. I specifically want to do this with an aggregate function:
DCount("*","tlbWhereUsed ","[tlbWhereUsed].[fldPartNumber]=[tblParts].[fldPartNumber]")
but I don't know where to put this function call in the query grid.
(I do not want to do this in VBA, if I don't need to).
Thanks in advance...