Using Visual Basic to Set Property of Option Group on Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to set the Boder Color property of an Option Group containing
check boxes on a form so that users will know when they have selected an
option from that group. I set an event procedure under the After Update event
attached to the Option Group named [Frame35] to no avail. The code is
contained in a class module behind the form.
If IsNull([Frame35]) = False Then
Me!Frame35.BorderColor = 16711680
End If
The 16711680 is the value of the 'Blue' I desire. How can I get the color
of the border to change after a value is selected in an Option Group? When
the form opens and no boxes have been checked the Border Color = 0. Nothing
I do works. I even tried removing the If statement and just trying to set the
color After Update and still no results. Any help would be appreciated.
 
Van W said:
I am trying to set the Boder Color property of an Option Group containing
check boxes on a form so that users will know when they have selected an
option from that group. I set an event procedure under the After Update event
attached to the Option Group named [Frame35] to no avail. The code is
contained in a class module behind the form.
If IsNull([Frame35]) = False Then
Me!Frame35.BorderColor = 16711680
End If
The 16711680 is the value of the 'Blue' I desire. How can I get the color
of the border to change after a value is selected in an Option Group? When
the form opens and no boxes have been checked the Border Color = 0. Nothing
I do works. I even tried removing the If statement and just trying to set the
color After Update and still no results. Any help would be appreciated.


Make sure the Special Effect is Flat. Windows controls the
colors of all 3D effects.
 
Back
Top