Specifying value of zero

nick5196

Registered User.
Local time
Today, 02:34
Joined
Feb 17, 2011
Messages
43
Hi,
very simple. I have this code
If Me.comments.Value = "" Then
MsgBox "No Comments to show", vbExclamation, "Chichester College"
End
Else
Me.Refresh
DoCmd.OpenReport "rptIndividualStudentComment", acViewReport, "", "", acNormal
How do i specify if the value = nothing/zero/empty if you see what i mean.
Thanks
Nick
 
A good way to handle nulls as well as empty strings is:
Code:
If Len(Me.Comments & vbNullString) = 0 Then
  MsgBox "No Comments to show", vbExclamation, "Chichester College"
 
...etc.
 
thanks a lot
 

Users who are viewing this thread

Back
Top Bottom