Discussion Locked

Access2000: Date() doesn't work

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have an Access 2000 database that uses the Date() function to return the current date. It works fine on my WinNT4.0 workstation. When I open the database on any other WinNT4.0 or Win9x machine, the field returns a #name? error. Why?
Is there another function I can use to return the date?

6 replies

by kirya

Sorry, but I don't know were the error may be. The other ( a bit ugly) way to get the date is DateValue(Now())

by ajd

Thanks for the tip, that did actually work but the underlying problem is still there.

by keith.hall1

Could be that if you check the references from the tools menu in the Visual Basic Code section that one of them is marked as missing - possibly DAO. Uncheck this and then scroll further down the list for the same library to see if its installed another location on your other machines.

Regards

Keith Hall

by ajd

Thanks, mate - you're a guru!! The database was actually referencing a library from the Veritas Backup Exec client I had on my machine, which was not on any of the other workstations. Thanks for your help! Spot on!

by acwiz

If you are using it as the default property it should work. If it is the control source make it "= date()" (without the quotes).

This discussion is closed to new replies.