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!

DATE function gives me a headache

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hi

I use this line in my code...
CStr(Format(Date, "ddmmyyyy"))

When I run the code on my machine, everything works fine, but when I run it on another machine, it doesn't recognize the function DATE.

Why?

The other machine has the same version of Access.

When I try to change DATE to NOW, then FORMAT does not work

What the heck is going on with my code?

I will appreciate any suggestions.

Thanks
 
I remember something similar occuring in an App I built where my development machine had a reference set to DAO 3.5 object library but the machine I transferred the App to had a reference to an earlier DAO library.

Rod
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top