britesynth
Registered User.
- Local time
- Today, 18:18
- Joined
- Mar 11, 2013
- Messages
- 88
Good Day!
I'm having a little issue with my form
I have a form with a subform and I want to display the count of the record displayed on my subform (source is from a query which I filter using a combo - criteria is [cbo] or Is Null - so I can filter or display all record as I need)
I placed a text box on my subform/datasheet footer
=Count([txtCountClientID])
then
I tried placing a text box in my main using this source
=IIf(IsNull([subfrmGroupTag].[Form]![txtCountClientID]),"no clients to display",[subfrmGroupTag].[Form]![txtCountClientID])
the false part is working fine - displays the count
the problem occurs when there is no record in the subform - displays #ERROR or #TYPE!
tried Nz on my footer didn't work either - I think it returns #TYPE! for my true part
how will it return 0 when my query/subform has nothing to display?
anything I'm missing?
thank you in advance!
-jake
I'm having a little issue with my form
I have a form with a subform and I want to display the count of the record displayed on my subform (source is from a query which I filter using a combo - criteria is [cbo] or Is Null - so I can filter or display all record as I need)
I placed a text box on my subform/datasheet footer
=Count([txtCountClientID])
then
I tried placing a text box in my main using this source
=IIf(IsNull([subfrmGroupTag].[Form]![txtCountClientID]),"no clients to display",[subfrmGroupTag].[Form]![txtCountClientID])
the false part is working fine - displays the count
the problem occurs when there is no record in the subform - displays #ERROR or #TYPE!
tried Nz on my footer didn't work either - I think it returns #TYPE! for my true part
how will it return 0 when my query/subform has nothing to display?
anything I'm missing?
thank you in advance!
-jake