View Full Version : Buttons on Pop-Up forms


Robert C
07-24-2000, 04:20 AM
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.

Atomic Shrimp
07-24-2000, 05:05 AM
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