Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How would one go about making cmd button invisible 1

Status
Not open for further replies.

SeeWard

Programmer
Mar 21, 2005
89
US
Hello All,
Curious to know if anyone had ideas on how to make a cmd button invisible depending upon a page selection within the tab control? I have a subform that's recordsource is a different table than another other forms. *I've got 4 tabs 2 of which are run on the main table, and 2 that correspond to a different table.* I would like to hide the 'add record' button if a certain page is selected on the form so as not cause confusion. The way it is set up now, the add record buttons etc are outside of the tab control. I rather not place them on the tab control if possilbe...
TIA
 
Hi!

Each page of the tab has it's own Click event that you can use to make the button invisible.

hth


Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
me.nameOfCommandButton.visible = true

or false as the case may be. assuming that the form the button is on has the focus and the button itself does not have the focus.

Ian M(UK)

Program Error
Programmers do it one finger at a time!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top