Datepart and Dateadd errors Access 2007

  • Thread starter Date Functions format errors
  • Start date
D

Date Functions format errors

I continually get an error message when I use the datepart and dateadd
functions.

The following command produces and error datepart("m", now()).

What I'm I doing wrong?
 
J

Jerry Whittle

It works like a champ for me. What is the error message? That tidbit would
help us to help you.

Does the following work?

Debug.Print DatePart("m", #1/1/2009#)

If not, something is wrong with DatePart. If it does work, something could
be wrong with the Now() function.

Both problems could be with references. Go to the following web page for
information on checking references:

http://www.mvps.org/access/bugs/bugs0001.htm
 
J

Jeff Boyce

.... and the error message says ... ?

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Date Functions format errors" <Date Functions format
(e-mail address removed)> wrote in message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top