Hi,
i've got a Form with a subform. The mainform has a textbox in it which gets its value from a textbox in the subform (i.e. [Forms]![mainform]![subform]![subformfield]).
Now the problem is, when the subform has no data in it, there is no such field and the target textbox produces an "#Error" (because there is no reference to the now mising field in the subform)
How can i prevent this textbox (in the mainform) to try to get data from the subform-textbox if it is not there (because there are no records in it) ?
Is there even a way I can check this in one line (so I don't need much code, just enter it in the textbox's content) ?
Thanks in advance,
Jens
i've got a Form with a subform. The mainform has a textbox in it which gets its value from a textbox in the subform (i.e. [Forms]![mainform]![subform]![subformfield]).
Now the problem is, when the subform has no data in it, there is no such field and the target textbox produces an "#Error" (because there is no reference to the now mising field in the subform)
How can i prevent this textbox (in the mainform) to try to get data from the subform-textbox if it is not there (because there are no records in it) ?
Is there even a way I can check this in one line (so I don't need much code, just enter it in the textbox's content) ?
Thanks in advance,
Jens