C
Chip
Howdy from Oklahoma!
I am new to ACCESS and know very little about VB but i am learning as I go.
Now my delima, I have a Form (FormA)that has a text box that needs to have
its "Default value" set to equal that of an opened subform (FormB)that is
part of a tabbed form (FormC). When I originally built the subform (FormA)
and FormB outside of the tabbed form (FormC) it worked great. But now that I
have placed FormB into the Mainform (FormC) under a tab, FormA gives the
"#Name?" error on the textbox that has its Default Value
=[Forms]![FormB].[textbox]. Remember: FormB is now a subform of FormC.
I can open the subform FormB outside of it being a subform (basically by
itself) and it works fine. Just when its a subform, FormA cannot find the
textbox of FormB.
I hope I explained it right. In a nutshell, I need to know how to make this
statement:
=[Forms]![FormB].[textbox]
point to the "textbox" if FormB is now a subform of FormC.
This may be simple but I have tried:
=[Forms]![FormC].[textbox]
and it did not work.
I would appreciate any assistance!!!
And THANKS IN ADVANCE!!!
I am new to ACCESS and know very little about VB but i am learning as I go.
Now my delima, I have a Form (FormA)that has a text box that needs to have
its "Default value" set to equal that of an opened subform (FormB)that is
part of a tabbed form (FormC). When I originally built the subform (FormA)
and FormB outside of the tabbed form (FormC) it worked great. But now that I
have placed FormB into the Mainform (FormC) under a tab, FormA gives the
"#Name?" error on the textbox that has its Default Value
=[Forms]![FormB].[textbox]. Remember: FormB is now a subform of FormC.
I can open the subform FormB outside of it being a subform (basically by
itself) and it works fine. Just when its a subform, FormA cannot find the
textbox of FormB.
I hope I explained it right. In a nutshell, I need to know how to make this
statement:
=[Forms]![FormB].[textbox]
point to the "textbox" if FormB is now a subform of FormC.
This may be simple but I have tried:
=[Forms]![FormC].[textbox]
and it did not work.
I would appreciate any assistance!!!
And THANKS IN ADVANCE!!!