I am new to this forum, and extremely new to VBA, so there may be a very simple explanation to this. I also apologize if I am giving you and excessive amount of detail. I have a table, tblAdmissions. One of the columns is for Certification and was set up as a lookup field that allows multiple values to be selected. In my form, the label for this field is called lblCertification, and the combo box is called cboCertification. I am trying to write an If/Then/Else statement that will turn the fore color in the label and the fore color combo box red if a certain value is selected. I wrote the following code:
Expand|Select|Wrap|Line Numbers
- If Me.cboCertification = "Other" Then
- Me.lblCertification.ForeColor = vbCyan
- Else
- Me.lblCertification.ForeColor = vbRed
- End If
I am sorry if this is a ridiculously easy question. Thank you for any help you are able to provide.