If you are looking to hide and show a button, you should look into the
"conditional formatting" feature. It will allow you to hide groups based on
conditions in your data.

Signature
Andrew J. Ma
Software Test Engineer
Microsoft Office InfoPath
http://blogs.msdn.com/ajma
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
> hi,
> i have created a button using runtime
[quoted text clipped - 14 lines]
> thanku,
> mahesh