database - How would I pass a variable between two forms that are subForms in a tab control in Microsoft Access? -
i have 2 forms in tab control in microsoft access. 1 of forms contains variable need share between other forms in tab control.
this link: http://www.codeproject.com/kb/vb/passvaluetoaccessform.aspx
shows me how pass variable between forms, when open other form. need able pass variable form open within subform in tab control.
any ideas?
why pass variable? forms can see other, long use right syntax.
if subforms subform1 , subform2 on same parent form, subform1, can @ properties of subform2 subform1 this:
me.parent!subform2.form!controlname
likewise, subform2, can properties/controls of subform1 with:
me.parent!subform1.form!controlname
so, there's no need variables. calculate in code can assign directly property/control in other form needed.
Comments
Post a Comment