Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Sub SetFCColor(FormName As String, _
ControlName As String, _
Condition As Integer, _
BackColor As Integer, _
Optional ForeColor As Integer = 0)
Dim ctl As Control
Dim fmc As FormatCondition
Set ctl = Forms(FormName).Controls(ControlName)
Select Case ctl.ControlType
Case acComboBox, acTextBox
Set fmc = ctl.FormatConditions(Condition)
fmc.BackColor = BackColor
fmc.ForeColor = ForeColor
Case Else
MsgBox ControlName & " is not a text box or combo box"
End Select
End Sub