background and backstyle

C

Carlos

Please tell me how to change the background color of a option box on a
form. Here is code we are using. The border changes color but we cannot
get the option box to turn white

If IsNull(Me!soapp4) Then
Me.optsoapp4.BorderColor = vbRed
Me.optsoapp4.BackColor = vbWhite
Me.optsoapp4.BackStyle = vbNormal
Me.Page3.SetFocus
Me.optsoapp4.SetFocus
End If

thanks in advance, Carlos
 
M

Marshall Barton

Carlos said:
Please tell me how to change the background color of a option box on a
form. Here is code we are using. The border changes color but we cannot
get the option box to turn white

If IsNull(Me!soapp4) Then
Me.optsoapp4.BorderColor = vbRed
Me.optsoapp4.BackColor = vbWhite
Me.optsoapp4.BackStyle = vbNormal
Me.Page3.SetFocus
Me.optsoapp4.SetFocus
End If


What do you mean by "option box"?

If you mean an Option Group then that should work.

If you mean a Toggle Button, Option Button or a Check Box,
then you can not set those properties.

However, you said that you can set the BorderColor, so I
don't know what you mean.
 
F

fredg

Please tell me how to change the background color of a option box on a
form. Here is code we are using. The border changes color but we cannot
get the option box to turn white

If IsNull(Me!soapp4) Then
Me.optsoapp4.BorderColor = vbRed
Me.optsoapp4.BackColor = vbWhite
Me.optsoapp4.BackStyle = vbNormal
Me.Page3.SetFocus
Me.optsoapp4.SetFocus
End If

thanks in advance, Carlos

Make sure the Option Group BackStyle is set to Normal (not
Transparent).
 

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