Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

1/1/1900 problem

Status
Not open for further replies.

lucyc

Programmer
Mar 1, 2002
62
0
0
US
How do you set null on a datetime data type field in SQL. If I have a date, it is ok, but if I leave it blank, it becomes 1/1/1900. Thanks in advance.
 
You should be able to set it to null. For example, I have a function in my component that checks whether the field being updated has a value or not. If it does, then I set the update field to that value, else I set it to "null". HTH

Everything is absolute. Everything else is relative.
 
if date = "" then
date = ''
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top