E
Evi
Which of your fields are text fields and which a number fields
(this makes a difference to the number of quote marks in your DCount)
If you wanted to count a field and the criteria field in your query was a
text field you would need
=Dcount("[MyCountField]","MyTable","[MyField]='" & [MyField] & "'")
ie after the last comma its
quote, [fieldname], equals, apostrophe, quote, &, [FieldName], &, quote,
apostrophe, quote, close bracket.
(Phew!!!)
Evi
(this makes a difference to the number of quote marks in your DCount)
If you wanted to count a field and the criteria field in your query was a
text field you would need
=Dcount("[MyCountField]","MyTable","[MyField]='" & [MyField] & "'")
ie after the last comma its
quote, [fieldname], equals, apostrophe, quote, &, [FieldName], &, quote,
apostrophe, quote, close bracket.
(Phew!!!)
Evi