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)
 
Back
Top