When you click Command1, you shift the focus to the check box, and then you can hide Command1...but you will also want to be sure that Command2 is visible, in case you are toggling back and forth between these command buttons.
The code behind the OnClick event for the second command button would be...
Tom
the code is working fine, but the problem when the button visible = false all the button on the Continuous Forms goes hidden. i want to hide the buttom only for the selected row/record.
This is typical behavior of a control in the detail section of a continuous form. Your best option is to use [blue]conditional formatting[/blue] but there are restrictions:
[ol][li]You [blue]can't set conditional formatting[/blue] for a command button. However you can use textboxes and make them look just like a command button. Using the textbox method you'll have [blue]the unwanted changing of the mouse pointer into the Ibeam when selecting.[/blue][/li]
[li]You can't hide, but you can [blue]disable[/blue] the textboxes (that grayed out look).[/li]
[li]Wether this can be done is dependent on wether the checkbox is bound (already inquired by [blue]randy700[/blue]). This question needs to be answered![/li][/ol]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.