calendar Control

J

Jon

According to documentation EndDateCalendar.Value = Date will display the
current date in the calendar control. I have the control bounded to a field.
I'm not sure how or where to place this statement to get it to work properly.
Any help would be greatly appreciated.

Jon
 
L

Linq Adams via AccessMonster.com

If the calendar is bound to a field, I assume you only want the calendar set
to the current date if you're entering a new record, so maybe something like
this:

Private Sub Form_Current()
If Me.NewRecord Then
EndDateCalendar.Value = Date
Else
EndDateCalendar.Value = Me.EndDateCalendar.Value
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top