J
Jerome
Hi,
Hopefully somebody'll understands my description here:
I've got a form (A), representing a certain event, with a subform (B)
representing the people coming to that event and their function. Now I
want to display on form (A) the total number of people of a certain
function who have already registered.
Right now I've done the following: created a count query on the people
list (with a criteria), created a form with one field (the # result of
that query) and placed this form as a hidden subform on form (A). There,
to make it easier, I created a visible textbox bound to the total number
on that subform. That works, except for those records that don't have
any people of that certain function yet! There the textbox writes
"#error# and/or asks me to debug.
My question now is: What do I have to do that the textbox writes 0 if
the count query is null? Meaning there are no people yet with the
desired criteria. I tried iif(IsNull(...)) and things like that, but
that doesn't work!?
Any help is greatly appreciated!
Jerome
Hopefully somebody'll understands my description here:
I've got a form (A), representing a certain event, with a subform (B)
representing the people coming to that event and their function. Now I
want to display on form (A) the total number of people of a certain
function who have already registered.
Right now I've done the following: created a count query on the people
list (with a criteria), created a form with one field (the # result of
that query) and placed this form as a hidden subform on form (A). There,
to make it easier, I created a visible textbox bound to the total number
on that subform. That works, except for those records that don't have
any people of that certain function yet! There the textbox writes
"#error# and/or asks me to debug.
My question now is: What do I have to do that the textbox writes 0 if
the count query is null? Meaning there are no people yet with the
desired criteria. I tried iif(IsNull(...)) and things like that, but
that doesn't work!?
Any help is greatly appreciated!
Jerome