hi everybody!
I recently included a calender in a small application and when the app. runs the calender displays the page of the month I coded the app. rather than the current one. anybody know how to fix this small prob.?
Thanks in advance!!
Printable View
hi everybody!
I recently included a calender in a small application and when the app. runs the calender displays the page of the month I coded the app. rather than the current one. anybody know how to fix this small prob.?
Thanks in advance!!
I'm not sure but is this a ActiveX control or your own code? I'm almost sure you have to pass the real date (date function) or datetime (now function)
I know in Access I had a similar problem. The key was to place the code in the Form_Load() event, not Form_Open()
Thus:
Hope this helpsCode:Private Sub Form_load()
Me.ActiveXCtl0.Value = #1/1/90#
End Sub
You're right kedaman:
OR:Code:Private Sub Form_Load()
Calendar1.Value = Now
End Sub
Code:Private Sub Form_Load()
Calendar1.Value = Date
End Sub