R
ryguy7272
I am curious to know if a TextBox on a form can be set to the last date that
was in the TextBox. I have this little piece of code that sets the TextBox
to the current date.
Private Sub TDATE_Click()
TDATE.Value = Date
End Sub
However, as I think about it, I will enter dates using the form, but the
date, and related data, may not be today; I may enter data, and related
dates, for yesterday or two days ago, so I’d like to click the TextBox and
have the date be today’s date or if I choose another date, such as yesterday,
keep this date in that TextBox, for the next record that I’ll enter, after
the current record is entered. Does that make sense?
Thanks!
Ryan---
was in the TextBox. I have this little piece of code that sets the TextBox
to the current date.
Private Sub TDATE_Click()
TDATE.Value = Date
End Sub
However, as I think about it, I will enter dates using the form, but the
date, and related data, may not be today; I may enter data, and related
dates, for yesterday or two days ago, so I’d like to click the TextBox and
have the date be today’s date or if I choose another date, such as yesterday,
keep this date in that TextBox, for the next record that I’ll enter, after
the current record is entered. Does that make sense?
Thanks!
Ryan---