R
RipperT
The following code is in the after update event of unbound control
..cboCellNo
With Me
Select Case .cboCellNo
Case 1 To 2
.cboBunk.Enabled = True
.cboBunk.RowSource = "A;B"
.cboBunk = ""
Case Null
.cboBunk.Enabled = True
.cboBunk.RowSource = "I;J"
.cboBunk.SetFocus
Case Else
Debug.Print .cboCellNo
.cboBunk.Enabled = False
.cboBunk = ""
.cboBunk.RowSource = ""
End Select
End With
If I delete a value from .cboCellNo and hit enter, Case Else fires and
Debug.Print line prints the word Null. If the value of .cboCellNo is Null,
why doesn't the Null case fire? I've tried variations like Case Is Null,
Case Is = Null etc. Why won't it fire?
Thanks
Ripper
..cboCellNo
With Me
Select Case .cboCellNo
Case 1 To 2
.cboBunk.Enabled = True
.cboBunk.RowSource = "A;B"
.cboBunk = ""
Case Null
.cboBunk.Enabled = True
.cboBunk.RowSource = "I;J"
.cboBunk.SetFocus
Case Else
Debug.Print .cboCellNo
.cboBunk.Enabled = False
.cboBunk = ""
.cboBunk.RowSource = ""
End Select
End With
If I delete a value from .cboCellNo and hit enter, Case Else fires and
Debug.Print line prints the word Null. If the value of .cboCellNo is Null,
why doesn't the Null case fire? I've tried variations like Case Is Null,
Case Is = Null etc. Why won't it fire?
Thanks
Ripper