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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a check boxon a subform to control a tcomand button 1

Status
Not open for further replies.

kpryan

Technical User
Aug 24, 2005
282
US
Hi all,

I need to be able to make a command button on a main form become invisible from a check box on a sub form.
I have tried different option without success.

I know how to make a command button invisible
ie:button.visible = true/false etc.
But to get this to work once the checkbox on the sub form
is checked.
Any help appreciated.
Kp
 
Howdy kpryan! . . .

In the [blue]AfterUpdate[/blue] event of the [blue]Checkbox[/blue], try this:
Code:
[blue]   Me.Parent![purple][B][I]ButtonName[/I][/B][/purple].Visible = Not Me![purple][B][I]CheckboxName[/I][/B][/purple][/blue]

[blue]Your Thoughts? . . .[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top