Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EASY ONE: Calender go to current date

Status
Not open for further replies.

murphysdad

Technical User
May 20, 2002
41
0
0
US
I use a calender that comes up as a form. How do I get this calender to be up to date as it opens. It is still reporting from the orignal date I started it.

Thanks,
J
 
In the Load event of the form:

Private Sub Form_Load()
Me("Calendar") = Date
End Sub

Do not try the Open event...it won't work

Good luck
[pipe]
Daniel Vlas
Systems Consultant
danvlas@yahoo.com
 
Thank you but it is not working. Perhaps I should have told you two things:
1. I am using access 97
2. the name of my calendar is frmCalendar

J
 
Is there an error that is produced? Also, try putting a stop next to the code that danvlas suggested and see what happens when that line is processed. I use "Me.calendar1.Value = Date" which is the same as what he suggested, just different syntax and that works.

Todd
 
Did you change the name in your activex control to calendar?

Mike
 
Me.calendar1.Value = Date worked. Thank you!

Jeremy Link

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top