Using Visual Basic to Set Property of Option Group on Form

V

Van W

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.
 
M

Marshall Barton

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top