Add a day and a month with DateAdd

M

Michelle

Hello, I'm trying to use the DateAdd function to add one day and one month to
date field in my work's database. I know someone showed me how to do it
before, but I can't remember how. Can someone help?
 
T

Tom van Stiphout

On Thu, 23 Jul 2009 06:48:01 -0700, Michelle

You cannot do that in one statement. Call DateAdd once to add a day,
and again to add a month to the previous result.

-Tom.
Microsoft Access MVP
 
K

Klatuu

You are missing a closing paren. Should be:

DateField = DateAdd("d", 1,(DateAdd ("m", 1, DateField)))
 
M

Michelle

Thanks!

Tom van Stiphout said:
On Thu, 23 Jul 2009 06:48:01 -0700, Michelle

You cannot do that in one statement. Call DateAdd once to add a day,
and again to add a month to the previous result.

-Tom.
Microsoft Access MVP
 

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