Calendar Control 11.0

skydiver

Registered User.
Local time
Today, 02:17
Joined
Nov 5, 2010
Messages
102
Access 2003. How can I get a calendar that displays the current date when the form is opened?
 
On the Load event of the form:

Me.CalendarControlName.Value = Date
 
vbaInet,

Let me elaborate a bit more. Currently on my form (Switchboard), on load I have:

Private Sub Form_Load()

DoCmd.Maximize

End Sub

Shall I include the calendar code within the "Private Sub Form_Load() procedure?
 
Last edited:
Not working. The calendar still appears on the date I created it. :(
 
Did you close and save the form before running it?
 
Yes. I even tried doing before and after. No luck.
 
You do realize that you have to replace CalendarControlName in vbaInet's code with the actual name of your calendar, right?
 
Missinglinq,

Good eye...I had changed it to my calendar name, but no-go. Thanks though!
 
Okay, figured it out. You need to change the Switchboard form's ALLOW EDITS property to YES.
 
Very good, Bob, but how odd!

With a form's AllowEdits Property set to No you can set non-ActiveX controls values using code.

As John Walton used to say "Life's a mystery!" At least where Access is concerned!

Linq ;0)>
 
Very good, Bob, but how odd!

With a form's AllowEdits Property set to No you can set non-ActiveX controls values using code.

As John Walton used to say "Life's a mystery!" At least where Access is concerned!

Linq ;0)>

Perhaps it is because essentially you are modifying the control (albeit setting a property) and Access can't manage that if it is something from outside the normal Access controls.
 
Maybe so. ActiveX controls, especially calendars, have always been problematical, of course.
 
Maybe so. ActiveX controls, especially calendars, have always been problematical, of course.

And why I avoid using them unless it is absolutely, positively necessary to accomplish what I need to accomplish. I use a form based calendar instead of an ActiveX control as well because of the issues.

And skydiver -

You may want to rethink using it because that calendar control is now now longer available within Access (in 2010) and will cause an error if you have one if, and when, your company upgrades.
 

Users who are viewing this thread

Back
Top Bottom