PC Review


Reply
Thread Tools Rate Thread

Bizarre option button behavior

 
 
skoalnreds
Guest
Posts: n/a
 
      29th May 2009
Hello -

I'm new to VBA and have a problem with a form which contains several
frames. In some of the frames I have sets of option buttons. Each
set has an option selected by default. When I run the form, the first
time I select a different option button in any of the frames, the
group of options in that frame are all deselected, including the
default option. If I click the same choice a second time, the correct
option gets selected in that frame.

If, however, I first make a change to one of the text boxes in a
different frame, and then select an option button, I don't encounter
the odd behavior with the option buttons. What am I missing?

Thank you.
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      29th May 2009
You probably want to add an initialize function to the form to run the first
time and set the default options.

"skoalnreds" wrote:

> Hello -
>
> I'm new to VBA and have a problem with a form which contains several
> frames. In some of the frames I have sets of option buttons. Each
> set has an option selected by default. When I run the form, the first
> time I select a different option button in any of the frames, the
> group of options in that frame are all deselected, including the
> default option. If I click the same choice a second time, the correct
> option gets selected in that frame.
>
> If, however, I first make a change to one of the text boxes in a
> different frame, and then select an option button, I don't encounter
> the odd behavior with the option buttons. What am I missing?
>
> Thank you.
>

 
Reply With Quote
 
skoalnreds
Guest
Posts: n/a
 
      29th May 2009
On May 29, 8:39*am, Joel <J...@discussions.microsoft.com> wrote:
> You probably want to add an initialize function to the form to run the first
> time and set the default options.
>
>
>
> "skoalnreds" wrote:
> > Hello -

>
> > I'm new to VBA and have a problem with a form which contains several
> > frames. *In some of the frames I have sets of option buttons. *Each
> > set has an option selected by default. *When I run the form, the first
> > time I select a different option button in any of the frames, the
> > group of options in that frame are all deselected, including the
> > default option. *If I click the same choice a second time, the correct
> > option gets selected in that frame.

>
> > If, however, I first make a change to one of the text boxes in a
> > different frame, and then select an option button, I don't encounter
> > the odd behavior with the option buttons. *What am I missing?

>
> > Thank you.- Hide quoted text -

>
> - Show quoted text -


Hi - thanks for the response. Your suggestion did not make a
difference. Anyway, the default values are stored in a spreadsheet
and they are linked as the control sources to the appropriate
objects. When the sheet is opened, the correct defaults are already
selected.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird option button behavior JNW Microsoft Excel Programming 3 9th Jan 2009 04:28 PM
Bizarre C# behavior BA Microsoft C# .NET 7 22nd Mar 2007 12:03 PM
Bizarre behavior =?Utf-8?B?QmFobWFu?= Microsoft ASP .NET 2 6th Mar 2006 07:10 PM
Bizarre Behavior Attila Windows XP Internet Explorer 2 8th Apr 2004 01:36 PM
Re: Bizarre Behavior Euc1id Windows XP New Users 0 26th Aug 2003 12:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:02 AM.