Not used to using hex values this way, but nonetheless don't understand what the issue might be?
Code:If Not IsNull(Form.ActiveControl) Then Form.ActiveControl.BackColor = CLng("&FFFFFF") Else Form.ActiveControl.BackColor = CLng("&F8BABB") End If