G
gmazza via AccessMonster.com
Hi there,
I have read many many articles on this website and I still can't get this
right.
I want a count of distinct RefNum displayed on my subform.
My subform displays 3 records, 2 with the same RefNum, so I would like the
text field on my subform to say 2, because there are 2 different Refnum's out
of the 3 records.
I have a query, qryCount that has this code:
SELECT DISTINCT dbo_DDXLMO.Refnum FROM dbo_DDXLMO;
I then have a text box on my subform that has the following in the Control
Source:
=DCount("*","[qryCount]")
It keeps coming back with 3.
What am I doing wrong here?
Thanks in advance.
I have read many many articles on this website and I still can't get this
right.
I want a count of distinct RefNum displayed on my subform.
My subform displays 3 records, 2 with the same RefNum, so I would like the
text field on my subform to say 2, because there are 2 different Refnum's out
of the 3 records.
I have a query, qryCount that has this code:
SELECT DISTINCT dbo_DDXLMO.Refnum FROM dbo_DDXLMO;
I then have a text box on my subform that has the following in the Control
Source:
=DCount("*","[qryCount]")
It keeps coming back with 3.
What am I doing wrong here?
Thanks in advance.