L
lsb
I have a subform "BHUSUBMD" that should remain disabled until an MD
selects their name from a combobox "Seenby". It seems I should use the
On Dirty event but I don't know how the code should look.
I've tried this:
Private Sub SEENBY_Dirty(Cancel As Integer)
Me.Dirty = False
If Me.SEENBY.Value = True Then
BHUSUBMD.Enabled = True
Else
BHUSUBMD.Enabled = False
End If
End Sub
But it's definitely not correct.
Can anyone help?
Thanks,
LB
selects their name from a combobox "Seenby". It seems I should use the
On Dirty event but I don't know how the code should look.
I've tried this:
Private Sub SEENBY_Dirty(Cancel As Integer)
Me.Dirty = False
If Me.SEENBY.Value = True Then
BHUSUBMD.Enabled = True
Else
BHUSUBMD.Enabled = False
End If
End Sub
But it's definitely not correct.
Can anyone help?
Thanks,
LB