Print Page | Close Window

Datepicker - Problem with date selection

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=7048
Printed Date: 06 October 2024 at 2:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Datepicker - Problem with date selection
Posted By: Krass
Subject: Datepicker - Problem with date selection
Date Posted: 05 May 2007 at 1:07pm
In VB, I have a button with the following code:
 
ctlDatePicker.select date
 
This highlights today in the datepicker.  Perfect.  The date I was on previously is still highlighted, but I guess I can just call an unselect routine or something to show only ONE day, and I guess that's no big problem.
 
My main problem is that this same line of code doesn't work under Access.  When I execute that line of code, nothing hapend at all.
 
Any tips?  Is this control supposed to work under Access, too?  (I was able to configure it, set properties at design time, and I can see it properly on the form at runtime - just that important .select routine doesn't work)
 
Thanks!
 
 
 


-------------
Christian



Replies:
Posted By: Krass
Date Posted: 05 May 2007 at 1:18pm

I just found the reason why it wasn't working properly.   The MaxSelectionCount was set to "1".  And using the .select property doesn't seem to UNSELECT the current highlighted date - avoiding the .select function to be executed.

I am gonna look through the help files to find the easiest way to unselect the current date (in my case, it could be an "UnselectAll" function - as I'm always only showing 1 date at a time).
 
Meanwhile, you can still reply with the best solution to this.
 
Thank you.


-------------
Christian


Posted By: Krass
Date Posted: 05 May 2007 at 1:22pm
.clearselection did the trick.
 
Sorry for the initial post - looks like I was able to answer myself.  Hate it when I find a solution 5 minutes after posting.
 
Thanks for reading


-------------
Christian



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net