Calculating date

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

I need to be able to get the current month and year and
put it into a text box with the specified day. For
example if the date was 11/05/03 and the user specified
the day 15 the date would be 11/15/03 this month 12/15/03
on any day next month and 01/15/04 on any day during
january.
 
Dan said:
I need to be able to get the current month and year and
put it into a text box with the specified day. For
example if the date was 11/05/03 and the user specified
the day 15 the date would be 11/15/03 this month 12/15/03
on any day next month and 01/15/04 on any day during
january.

In an unbound control, enter:

=DateSerial(Year(date()),Month(Date()),[ControlName])

where ControlName is the name of a control on your form in which the day
number is entered.
 
Back
Top