Subtracting one day from date in textbox.

D

David

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
 
M

Marshall Barton

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