T
TerryC
Hi,
I am trying to count the number of related records each member of an
organisation has.
eg.
main table with member specific info
MemberNumber
member name
address, phone etc
Extras table with info on "extra claims" made
member_number
claim type
service number
provider number etc
What I want is a count of claims each member has made.
I am trying to use a dcount in a query column but am having a problem with
the criteria portion of the dcount syntax.
I get a message "microsoft Access can't find the field MemberNumber entered
in the expression".
Here is the SQL for the query:
SELECT customer.MemberNumber,
DCount("*","extras","[member_number]=MemberNumber") AS extra
FROM customer;
Any suggestions or areas to look into would be appreciated.
Access 2002 SP3
Terry
I am trying to count the number of related records each member of an
organisation has.
eg.
main table with member specific info
MemberNumber
member name
address, phone etc
Extras table with info on "extra claims" made
member_number
claim type
service number
provider number etc
What I want is a count of claims each member has made.
I am trying to use a dcount in a query column but am having a problem with
the criteria portion of the dcount syntax.
I get a message "microsoft Access can't find the field MemberNumber entered
in the expression".
Here is the SQL for the query:
SELECT customer.MemberNumber,
DCount("*","extras","[member_number]=MemberNumber") AS extra
FROM customer;
Any suggestions or areas to look into would be appreciated.
Access 2002 SP3
Terry