Calendar control - default the date to Today.

D

D Hafer - TFE

I found in the MS access reference help files that I can use the Today method
to set the value of the calendar control to today's date.

The syntax would be: Beginningdate1.Today

Can anyone tell me where I need to put this?
 
A

Allan Murphy

I have a calendar on a form called calendar_date and I use the following
code to set the default date of the calendar to the current date using this
code in the LOAD event of the form

Private Sub Form_Load()

DoCmd.Maximize ' maximise the screen
calendar_date = Date

End Sub
 
Top