patkeaveney
Registered User.
- Local time
- Today, 19:00
- Joined
- Oct 12, 2005
- Messages
- 75
I have a form bound to a query.
The query contains thee following tables
tblRequests
Field Name Value Value
intrequestID 1 2
Linktable
Field Name Value Value Value
intRequestID 1 1 2
intExemptionID 20 21 20
tblExemptions
Field Name Value Value
intExemptionID 20 21
In the code I want to count the number of unique intRequestIDs in the link table
In the above example the count would be 2.
I have used record count, but that returns a value of 3, which is right for the number of records, but how do I code to get the unique count.
Thanks for your help
Pat
The query contains thee following tables
tblRequests
Field Name Value Value
intrequestID 1 2
Linktable
Field Name Value Value Value
intRequestID 1 1 2
intExemptionID 20 21 20
tblExemptions
Field Name Value Value
intExemptionID 20 21
In the code I want to count the number of unique intRequestIDs in the link table
In the above example the count would be 2.
I have used record count, but that returns a value of 3, which is right for the number of records, but how do I code to get the unique count.
Thanks for your help
Pat
Last edited: