Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > looping thru th...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 30140 of 31576
Post > Topic >>

looping thru the buttons in an option group

by sparks <sparks@[EMAIL PROTECTED] > May 1, 2008 at 03:48 PM

well I am trying to get around looking at all the buttons with a case
statement so I was trying this.

Public Sub looking(ctlname)
Dim ctl As OptionGroup
Dim btn As ToggleButton
ctl = Me.Controls(ctlname)
=============================
For Each btn In ctl.children <<<< I know that the children doesn't
make since .its just a note to myself..this is where I am stumped.
I thought maybe ctl.controls but now shure what or how to loop thru
these
= ============================
  If btn.OptionValue = ctl.Value Then
    btn.ForeColor = 255
  Else
    btn.ForeColor = 0
  End If
Next


I was hoping to go thru the buttons in the option group and if it was
the selected button change the foreground color.

but I can't get the grasp of exactly what a button is in an
optiongroup
 




 5 Posts in Topic:
looping thru the buttons in an option group
sparks <sparks@[EMAIL   2008-05-01 15:48:03 
Re: looping thru the buttons in an option group
Marshall Barton <marsh  2008-05-01 14:39:53 
Re: looping thru the buttons in an option group
sparks <sparks@[EMAIL   2008-05-02 12:42:17 
Re: looping thru the buttons in an option group
Marshall Barton <marsh  2008-05-02 17:28:34 
Re: looping thru the buttons in an option group
sparks <sparks@[EMAIL   2008-05-05 13:12:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:28:03 CST 2008.