I would like for a field to become disabled and left blank based on a combo box selection. I wrote in a code that I thought would work - but it doesn't. Any ideas where I went wrong?
Private Sub Company_BeforeUpdate(Cancel As Integer)
If Category = "MG" Then
Company.Enabled = True
Else
Company.Enabled = False
End If
End Sub
The "Company.Enabled = False" line is where I'm getting the error message.
Private Sub Company_BeforeUpdate(Cancel As Integer)
If Category = "MG" Then
Company.Enabled = True
Else
Company.Enabled = False
End If
End Sub
The "Company.Enabled = False" line is where I'm getting the error message.
