Full Version: Open Calendar on correct day/month
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
emphasis1979
hello there,

i've created a Calendar popup from the activeX tools. its opened via a button on a form, and acts as a quick reference for users. The Calendar always opens to the day I created this form - 11th Jan. Does anyone know how to tell it to open with todays date highlighted?

many thanks
e1979
geohawk
Don't know how to do it myself but if you look in the code archive, you'll find several examples. Click the advanced search link and type calendar in the keyword field and set the date range to "All Posts."
kimbabagira
Add this to the form that has the Calender.

On Current......

ActiceXCtl0 is my Calender ActiveX

Private Sub Form_Current()
Me.ActiveXCtl0.Value = Now()
End Sub

Darren
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.