S
Scott D
I am trying to get around the SQL Null Date issue by using
Date.MaxValue. When I enter the information into the db I use the
following code:
If Me.test.Text = "" Then
test = Date.MaxValue
Else
test = Me.test.Text
End If
The dates go in fine. However when I try to check for Date.MaxValue
using this code:
If Not dr("test") = Date.MaxValue Then
Me.test.Text = dr("test")
End If
The if statement never evaluates to true even though the MaxValue date
is being read from the database.
Any clue as to why this evaluation would be failing?
Date.MaxValue. When I enter the information into the db I use the
following code:
If Me.test.Text = "" Then
test = Date.MaxValue
Else
test = Me.test.Text
End If
The dates go in fine. However when I try to check for Date.MaxValue
using this code:
If Not dr("test") = Date.MaxValue Then
Me.test.Text = dr("test")
End If
The if statement never evaluates to true even though the MaxValue date
is being read from the database.
Any clue as to why this evaluation would be failing?