DateAdd problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a button that sets the date in a text field 2 years from
another date text field using the setvalue macro. Problem is I want the date
to be 2 years minus one day not 2 years exactly.
DateAdd("m",24,[Forms]![Form Licence Application]![Valid From])

How do I subtract the day?
 
Just substract 1:
DateAdd("m",24,[Forms]![Form Licence Application]![Valid From]) - 1

HTH
 

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