Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Visible Property

Visible Property

Visible Property


I have two buttons, mutually exclusive, that is if one is clicked and visible the other one should become invisible.  However, I am not able to achive it for both buttons.  I have riten the simple Command18.visible false and command22.visible=false on clic events of Command22 and Command 18 respectively but for some reason it does not perform it task for the Command22.  If you have some ideas how this problem can be dealt with I appretiate you comments.
Thanks in advance


RE: Visible Property

use an Option Frame instead

Open your form in design view then
Add a Frame

It's a wizard so it will prompt you
part way through you will asked what type.
Buttons, Check boxes, Radio buttons.

Any item inside the frame is a toggle and only one can be chosen the others are not. If you only need 2 just put 2.
Now they don't disappear as you mentioned but it might be a solution rather than re-inventing the wheel.


Ask me how Bar-codes can help you be more productive.

RE: Visible Property

In the onClick event of Button18

  If command18.visible = true then
      Command18.visible = false
      Command22.visible = true
      Command18.visible = true
      Command22.visible = false
  End if

In the onClick event of Button22

  If command22.visible = true then
      Command18.visible = false
      Command18.visible = true
      Command22.visible = true
      Command18.visible = false
  End if

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close