Detail Section Color Change

P

PHisaw

Using the following code, I cannot get the detail section to change back to
the original color, regardless of the text selected in the combo box. It
changed the first time I went back to the form. I'm using ElseIf because I
have other conditions on the After Update event of the TypeCombo box.

ElseIf Me.TypeCombo = "CONDITIONAL TEXT" Then
Me.Section(acDetail).BackColor = 8421440
End If

Any help is appreciated!
Phisaw
 
F

fredg

Using the following code, I cannot get the detail section to change back to
the original color, regardless of the text selected in the combo box. It
changed the first time I went back to the form. I'm using ElseIf because I
have other conditions on the After Update event of the TypeCombo box.

ElseIf Me.TypeCombo = "CONDITIONAL TEXT" Then
Me.Section(acDetail).BackColor = 8421440
End If

Any help is appreciated!
Phisaw

Your code changes the color of the section but you do not have any
code here that changes it back.

If ..... etc .....
Else
If Me.TypeCombo = "CONDITIONAL TEXT" Then
Me.Section(acDetail).BackColor = 8421440
Else
Me.Section(acDetail).BackColor = whatever color you want
End If
Else
continue with the rest of your code....
 
P

PHisaw

Thanks, Fred for the reply. The users have decided to go to separate form
with new color that doesn't change, but I will keep the code for future use.
Thanks again for all your help. Phisaw
 

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