Hi,
I'm using simple INSERT statement (not stored proc.)
Here is what I have:
Dim varDate as Object
IF txtDate.text = String.Empty then
varDate = System.DBNull.Value
ELSE
varDate = txtDate.text
END IF
It doesn't work - I'm getting that dafault thing 1/1/1900 each time I insert an empty date.
Thank you in advance.
I'm using simple INSERT statement (not stored proc.)
Here is what I have:
Dim varDate as Object
IF txtDate.text = String.Empty then
varDate = System.DBNull.Value
ELSE
varDate = txtDate.text
END IF
It doesn't work - I'm getting that dafault thing 1/1/1900 each time I insert an empty date.
Thank you in advance.