Hi Rudy,
You'll have to either rename your ActiveX Calendar from the default (usually
something like "ActiveXCtl3") to "MyCal" or substitute that default name of
the calendar into the code.
i.e.
Private Sub Form_Load()
ActiveXCtl3.Value = Date
End Sub
"rudy" <rc******@satx.rr.com> wrote in message
news:8b**************************@posting.google.c om...
I am new to adding code, can you tell me if the code you provided is
simply copied or additional references to form names or object names
need to be included? I copied the code as indicated and I get an
error that highlights the 'MyCal.Value = Date' section.
Thanks,
Rudy
"Don Leverton" <le****************@telusplanet.net> wrote in message
news:<4qWqc.3964$g71.3524@clgrps13>...
Hi Rudy,
Set the value of the calendar to today's date in the Form Load event
Private Sub Form_Load()
MyCal.Value = Date
End Sub
Don
"rudy" <rc******@satx.rr.com> wrote in message
news:8b*************************@posting.google.co m... I am currently using the Active X Calendar object in a form to select
the dates. The problem I am having is when the month changes the
calendar continues to display the previous month. How can I set this
to change automatically? Access 2000.