jamaarneen
Programmer
Hi everybody
Here is my situation:
I have a mainform, subrform 1 (requests, and subform 2 (orders). each of these subforms have got - among others - a textbox (total) with some functions as control source.
the subforms are working.
I would like to get the value from these totaltexboxes, in a textbox on the mainform. this should be triggered in a click_event from a control on the mainform.
my code in the event will be:
Code:
Me![i]textboxName[/i] = [i]SubformName[/i].Form!txtTotal.Value
but how weird, for subform 1 it's working perfect, but for subform 2, if the value of subform2!textboxTotal is zero, then i'm getting error 2427: "you entered an expression that was no value".
and yes, i tried working with Nz() - the same error!
it's weird because for subform 1 it's working perfect even with a zero value.
thanks in advanced for your help
Ja