J
Jerome
Hi there,
I've got trouble with a subform: I want to check whether it has any
records or not and do something depending on it. Somebody now suggested
I'd do that with the following code: =IIf(subformControl.Form.HasData,
subformControl.Form.txtFromSub, 0), but somehow that doesn't work since
I always get a #name? error! And the names seem to be right!?
Anyone have any ideas what could be wrong or how I could otherwise test
if a subform has any records at all?
some more notes: when I enter the following code
(=[subformControl].Form!noAtt) as the datasource into an unbound field
on my main form, everything works alright EXCEPT it displays an #error
when the subform doesn't contain a record. What code is needed so the
unbound field doesn't display #error but 0 instead??
(and I'm using Microsoft Access 2000)
thanks
Jerome
I've got trouble with a subform: I want to check whether it has any
records or not and do something depending on it. Somebody now suggested
I'd do that with the following code: =IIf(subformControl.Form.HasData,
subformControl.Form.txtFromSub, 0), but somehow that doesn't work since
I always get a #name? error! And the names seem to be right!?
Anyone have any ideas what could be wrong or how I could otherwise test
if a subform has any records at all?
some more notes: when I enter the following code
(=[subformControl].Form!noAtt) as the datasource into an unbound field
on my main form, everything works alright EXCEPT it displays an #error
when the subform doesn't contain a record. What code is needed so the
unbound field doesn't display #error but 0 instead??
(and I'm using Microsoft Access 2000)
thanks
Jerome