Buttons on Pop-Up forms

Robert C

Registered User.
Local time
Today, 17:59
Joined
Mar 27, 2000
Messages
88
I would like to know if it is possible to have a command button only appear on a pop-up form when it is accessed as a pop-up. I would like the button to not be visible if it is accessed as a form in its own right.

Many thanks for any help on this.
 
Yes; if you put this in the Form_load sub:

Me.ButtonName.Visible = Me.PopUp

But if it's the only button on the form you will also need to set the TabStop property of the button to No (or find some other way of preventing the button from receiving the focus).

Hope this helps

Mike
 

Users who are viewing this thread

Back
Top Bottom