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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2000 Calendar Control Default Date 3

Status
Not open for further replies.

mapman04

IS-IT--Management
Mar 28, 2002
158
US
I'm trying to use the ActiveX Calendar Control in a form. But I can't seem to change the default date on the calendar. It's Calendar Control 9.0. I've tried Me.calcontrol.value = Date and Me.calcontrol.today and neither work. When you pick a date on the calendar, it does work. Is it possible to have the default calendar date set to today's date?

Thanks in advance!
 
Me.calControl.Value = Date

works for me but i am using v11.

A

 
HAVE YOU TRIED
= NOW()
or you ay have to put in the brackets like...
= date()

Ian Mayor (UK)
Program Error
Programming is 1% coding, 50% error checking and 49% sweat as your application bombs out in front of the client.
 
It automatically removes the () after I add them to the code.

mapman04
 
How are ya mapman04 . . .

If your using say . . . the forms [blue]OnOpen[/blue] event it won't work. try the [blue]OnLoad[/blue] event!

Calvin.gif
See Ya! . . . . . .
 
What's the actual name of your control? Access assigns a name to any control when it's placed on a form, and I'm guessing that calControl isn't it, unless that's a name you've assigned to it!

The Missinglinq

There's ALWAYS more than one way to skin a cat!
 
A star for you TheAceMan1. I'm not sure why OnLoad works and OnOpen doesn't, but it solved my issue. Many thanks!

mapman04
 
I'm not sure why OnLoad works and OnOpen doesn't
When the Open event fires the form is not yet loaded and thus the controls aren't accessible.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top