PC Review


Reply
Thread Tools Rate Thread

Access 2003 Calendar Control 11.0 value update

 
 
David G.
Guest
Posts: n/a
 
      23rd Jun 2010
Everything I've read so far says the calendar control's date can be
changed in VBA by:

CalendarControlName.Value=ControlName.Value

where ControlName.Value is a valid date.

DOESN'T WORK!

I've tried

CalendarControlName.Value=#05/05/2010#
CalendarControlName.Value="05/05/2010"
CalendarControlName.Value=cdate(ControlName.Value)

The day, month, and year values don't update. I'm able to effectively
use the calendar control on a pop up form to change text box date
values just fine. The only problem I'm having is setting the date when
the pop-up form opens. The code

me.ocxCalendar.Value=dteMydate

runs when the pop up form opens, without any errors, but the calendar
control's selected date won't change.

What am I missing?
THANKS!
David G.
 
Reply With Quote
 
 
 
 
David G.
Guest
Posts: n/a
 
      23rd Jun 2010
Must set the focus to the calendar control before changing the date
value.

Everything works as expected now!
THANKS!
David G.
 
Reply With Quote
 
Tony Toews
Guest
Posts: n/a
 
      24th Jun 2010
On Wed, 23 Jun 2010 13:13:53 -0400, David G. <(E-Mail Removed)>
wrote:

>Everything I've read so far says the calendar control's


See the Calendar Tips page at my website
http://www.granite.ab.ca/access/calendars.htm

There could, likely will, be lots of version problems when you go to
distribute the MSCal.OCX..

One alternative is MonthCalendar is a completely API generated Month
Calendar derived directly from the Common Control DLL. There are
links to several downloadable calendar forms at my website. As these
are forms you can also do anything with them you want.

You can also use the calendar form which comes in the Access <insert
your version here> Developers Handbook by Litwin/Getz/Gilbert,
publisher Sybex www.developershandbook.com. These books are well
worth spending money. Every time I open one I save the price of the
book.

Duane Hookum has an awesome and simple calendar in a report. See the
Calendar Reports sample section at
http://www.access.hookom.net/Samples.htm

Tony
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar Control works in Access 2003 but not Access 2007 kware100 Microsoft Access 5 15th Sep 2009 03:35 PM
How do I put a calendar control in Access 2003 OCN95 Microsoft Access Forms 3 13th Oct 2008 02:39 AM
Is the a monthly calendar control available in Access 2003/2007? Dave Microsoft Access Forms 1 25th Apr 2008 01:44 AM
Calendar Control (ActiveX) Access 2003 mhwinokur Microsoft Access 4 20th Jul 2007 01:20 AM
How can I use Calendar Control 11.0 from Access 2003? Rob Microsoft Access Form Coding 0 11th Jan 2006 08:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:36 PM.