Saturday, August 21, 2010

Access: How do you reference a control in another form?

I want to reference another form's field from the global moduleAccess: How do you reference a control in another form?
Try making a public property or function on the form which will encapsulate the control function you wish to modify.





for example on Form1 create:





Public Sub myFrmButtonEnable( myBln as Boolean)


me.Button.Enable = myBln


End sub





from your module call this sub by





Form1.myFrmButtonEnable = False

No comments:

Post a Comment