PDA

View Full Version : User Form



vwsteven
04-05-2011, 09:17 AM
Hi all
I'm trying to write a code for a User form. What I need is to enter some dates into one field and then that date -2days must appear in the field next to it, so that I can still amend it.

Is that possible or can you only write stuff in the fields?

thanks for your help

Bob Phillips
04-05-2011, 03:36 PM
Untested

If IsDate(Textbox1.Text) Then
Textbox2.Text = CDate(Textbox1.Text) - 2
End If