dateadd

  • Thread starter Thread starter dan
  • Start date Start date
D

dan

i used this function >DateAdd("m",-3,Date()) to give me
months prior to current date it worked i assumed i
could use the same function for the year and put in
DateAdd("yyyy",-3,Date()) but it doesnt work could
someone help me?
 
Dan,
It worked right for me. What do you get?

-----Original Message-----
i used this function >DateAdd("m",-3,Date()) to give me
months prior to current date it worked i assumed i
could use the same function for the year and put in
someone help me?
.
 
What do you mean "it doesnt work"? Do you get an error message? No Records?
The wrong Records? Too many records? Too few Records?

What you have shown should return all records where the date field is later than
3 years ago. In other words all records where the date field is after December
31, 2000. Is that what you want?

If you want all records from Jan 1, 2000 then you would need
 
this is so weird it now works i closed out and went
back in and it now works?
 
Well, glad it works for you. Happy New Year!
-----Original Message-----
this is so weird it now works i closed out and went
back in and it now works?
.
 

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

Back
Top