Subtracting one day from date in textbox.

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

Guest

Hello,

I have a unbound textbox(EnterDate) that copies itself to another
textbox(Dayone). I did this by me.dayone = me.enterdate

What I cant figure out how is how do I subtract one day for the value in the
dayone textbox. So, the value for dayone is one day less then the value for
enterdate.

Any help would be great

Thanks
David
 
David said:
I have a unbound textbox(EnterDate) that copies itself to another
textbox(Dayone). I did this by me.dayone = me.enterdate

What I cant figure out how is how do I subtract one day for the value in the
dayone textbox. So, the value for dayone is one day less then the value for
enterdate.


me.dayone = DateAdd("d", -1, me.enterdate)
 

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