Select Case Statement

Carly

Registered User.
Local time
Today, 17:41
Joined
Apr 16, 2003
Messages
86
:confused:
I am currently using the following Select Case Statement
PHP:
Dim Id As String
Id = DLookup("signedoff", "Check")
    
Select Case Id

Case "X"

Me.RunMacro.SetFocus
    
Case Is <> "X"
        
MsgBox ("This vendor has not been signed off for the selected period.")
Me.Period.SetFocus
    
End Select
This errors out when the field 'signedoff' is null. What can I do to stop this happening.

The values of signedoff is either X or null

Regards
Carly
 
Id = Nz(DLookup("signedoff", "Check"))
 
Thanks for your help, this worked fine!

Regards
Carly
 

Users who are viewing this thread

Back
Top Bottom