OK, Wierd story... While at another computer I input that code, went back to
my laptop, opened the database... and i get a message stating "Undefined Date
in Expression".... I tried to recopy the code you gave me and tried doing it
by hand, and nothing... still the same.... does it matter that i went from
2003 to 2002? I see the DateSerial function in 2002, So whats the problem?
That PC has a missing reference.
Open any module in Design view (or click Ctrl + G).
On the Tools menu, click References.
Click to clear the check box for the type library or object library
marked as "Missing:."
An alternative to removing the reference is to restore the referenced
file to the path specified in the References dialog box. If the
referenced file is in a new location, clear the "Missing:" reference
and create a new reference to the file in its new folder.
See Microsoft KnowledgeBase articles:
283115 'ACC2002: References That You Must Set When You Work with
Microsoft Access'
Or for Access 97:
175484 'References to Set When Working With Microsoft Access' for
the correct ones needed,
and
160870 'VBA Functions Break in Database with Missing References' for
how to reset a missing one.
For even more information, see
http://www.accessmvp.com/djsteele/AccessReferenceErrors.html