Hi,
I've been trying to set a on Change command for a group of List boxes to enable a button when they contain data, but I can't seem to detect when they contain a null value. The code is as follows:
The cboLevelID list box does not contain anything and returns a Null value, but does not equal Null for some reason and therefore the code jumps to the Else part of the IF. I have tried adding a copy of the cboLevelID (cboDummyBlank) onto the form and putting
But once again this skips to the Else.
Thanks for any help as I was hoping this would be a quick bit of code!
I've been trying to set a on Change command for a group of List boxes to enable a button when they contain data, but I can't seem to detect when they contain a null value. The code is as follows:
Code:
Private Sub cboSchemeID_Change()
If cboLevelID.Value = Null Then
cmdPreview.Enabled = False
Else
cmdPreview.Enabled = True
End If
End Sub
Code:
If cboLevelID.Value = cboDummyBlank.Value Then
Thanks for any help as I was hoping this would be a quick bit of code!