Solved

Having trouble selecting a VB option button repeatedly.

Posted on 1998-07-14
3
191 Views
Last Modified: 2010-05-03
I'm not able to select an option button repeatedly that has code associated with it to make a combo box appear, but the button works properly when I click on a different option button then back to the first button.

Any ideas?

-- Stacey --
0
Comment
Question by:s033slb
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
khaledc earned 30 total points
ID: 1465755
Stacey,
Very Simple to solve the problem:
If your option button is called "option1" then what you have to do is to use one of the following events:
option1_MouseDown or option1_MouseUp, inside these sub type the following:
call Option1_Click
hence, your code will look like:

Sub Option1_MouseDown()
    call Option1_Click
End Sub

By doing this you will make sure the execution of your code every time you click on the option box even if it is chekced.

I did try the code myself and it is working
Write if you need more explanation.
Regards


0
 

Author Comment

by:s033slb
ID: 1465756
Thanks khaledc.

This works.

-- Stacey --

0
 
LVL 1

Expert Comment

by:khaledc
ID: 1465757
No sweat..
Glad to help
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question