Enable button in a subform when certain form contains it is opened

latex88

Registered User.
Local time
Today, 15:09
Joined
Jul 10, 2003
Messages
198
I have a subform that is used in different forms. In that subform, there is a button called CmdFinish that I only want to be “visible” or “enable” in certain forms. Does anyone know how I can code this?
 
Use the on_open command of the main form to specify whether the button is visible or not.

me.subformname!buttoname.visible=false
 
Or enabled...
Code:
Me.SubformName!CmdFinish.Enabled = False

IMO
 

Users who are viewing this thread

Back
Top Bottom