tiistai 4. syyskuuta 2007

How to handle NULLS with IsNull()

Two ways to handle null values in Forms.

If IsNull(Me.StartDate) Then
Me.StartDate = "1.1.1899"
End If

If IsNull([Forms]![AddForm1]![EndDate]) Then
[Forms]![AddForm1]![EndDate] = "1.1.1899"
End If

Ei kommentteja: