Please define "doesn't work." Does the function return a date? If so, is
it the correct date? If not, what happens? Is there an error message? If
there is an error message, what does it say?
The Date() function often gets messed up if your computer's references
are messed up.
This appears to be the very common References bug. Open any
module in design view, or open the VBA editor by typing
Ctrl-G. Select Tools... References from the menu. One of the
..DLL files required by Access will probably be marked
MISSING. Uncheck it, recheck it, close and open Access.
If none are MISSING, check any reference; close and open
Access; then uncheck it again. This will force Access to
relink the libraries.