dkmoreland
Registered User.
- Local time
- Today, 13:35
- Joined
- Dec 6, 2017
- Messages
- 129
I am constructing a form with multiple calculated fields from multiple queries. The form itself is not bound to a record source.
I got one field working with DCount. However, the other field is giving me a #Name error and I cannot see why.
The control is a text box named TxtNCRjobs. The query I want a record count from is called [jobs with ncrs distinct test]. My control source statement for the text box is this. There are no criteria - I just want the number of records.
This form also contains a subform, listing the data from the query I'm trying to count. I've attached a screen shot for reference.
Can anybody see why I'm getting the #Name error? Is my DCount statement incomplete?
Thanks
I got one field working with DCount. However, the other field is giving me a #Name error and I cannot see why.
The control is a text box named TxtNCRjobs. The query I want a record count from is called [jobs with ncrs distinct test]. My control source statement for the text box is this. There are no criteria - I just want the number of records.
Code:
DCount("*", "[jobs with ncrs distinct test]")
This form also contains a subform, listing the data from the query I'm trying to count. I've attached a screen shot for reference.
Can anybody see why I'm getting the #Name error? Is my DCount statement incomplete?
Thanks