Checking for No Value

dungstar

Registered User.
Local time
Today, 04:47
Joined
Mar 13, 2002
Messages
72
I need to be able to check whether or not a value is assigned to a certain field. How do I do this?

For some records, some fields contain no value. I need to detect when that field contains a value and make a label visible. (This is for the report's detail section.)

I tried several things, none of which works because I get an error saying that the field I'm trying to check contains no value.


Private Sub Report_Open(Cancel As Integer)
If Not IsNull(Me.Field1) Then
Label1.Visible = True
Else
Label1.Visible = False
End If
End Sub

Please help! Thanks!
 
It works in the Detail Format section. Thanks, Rich!
 

Users who are viewing this thread

Back
Top Bottom