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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Null Date Function

Status
Not open for further replies.

rookery

Programmer
Apr 4, 2002
384
GB
Does anyone know of any reason why the simple command:

Msgbox Date

should work on one Form but not another? Surely this suggests that it is not a References problem? Perhaps a priority issue?
 
are you perhaps using date as a field name or control name somewhere on the form?

as problem solving see if now() works
 
Try msgbox nz(date). Nz returns on initialized value depending on the date type (eg "" for strings, 0 for integers, etc). As to why it isn't working, I don't know.
 
Thanks guys for your replies. I realised that I had a field named Date. Very strange though because it never seemed to be a problem in the past and started happening all of a sudden....
So Gol your assumption was correct.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top