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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -