Morning all,
I have a small procedure that checks the value of a text box. If it is 'Null' it should exit the sub. Here it is
Private Sub txtSURICCode_GotFocus()
If txtSURICCode.Value = Null Then
Exit Sub
Else
SURICSNumber = txtSURICCode.Value
End If
End Sub
For some reason the first line 'If txtSURICCode.Value = Null ' is never getting acted on. If I go into debug and hover over to get the value of txtSURICCode it shows as 'Null' so why is the Exit Sub not being acted on ?
Any help appreciated.
Chris
I have a small procedure that checks the value of a text box. If it is 'Null' it should exit the sub. Here it is
Private Sub txtSURICCode_GotFocus()
If txtSURICCode.Value = Null Then
Exit Sub
Else
SURICSNumber = txtSURICCode.Value
End If
End Sub
For some reason the first line 'If txtSURICCode.Value = Null ' is never getting acted on. If I go into debug and hover over to get the value of txtSURICCode it shows as 'Null' so why is the Exit Sub not being acted on ?
Any help appreciated.
Chris