Problem with field containing null value

wjoc1

Registered User.
Local time
Today, 11:54
Joined
Jul 25, 2002
Messages
117
Hi I have an If statement checking the value in a particular field. The format for the field shoulld be a date but if it is not filled in I assumed it would be null.( I have no other default value specified for the filed) Why isn't this piece of code working?

If ([Forms]![SCHEMEJOBS-NoLineJOB]![COMPLETED DATE] = Null) Then
<some_statements>
End If

Can someone please help?
Thanks,
Liam
 
Try this instead:

If (IsNull([Forms]![SCHEMEJOBS-NoLineJOB]![COMPLETED DATE]))or ([Forms]![SCHEMEJOBS-NoLineJOB]![COMPLETED DATE]="") Then
<some_statements>
End If
 
If IsNull([Forms]![SCHEMEJOBS-NoLineJOB]![COMPLETED DATE] ) Then
<some_statements>
End If
 

Users who are viewing this thread

Back
Top Bottom