Highlight date in datepicker control |
Post Reply |
Author | |
haitao
Newbie Joined: 17 August 2005 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 31 August 2005 at 5:14pm |
Hi, I am using Access 2003. I have a datepicker control named "datepicker" and a button control named "btnToday" on a form. What i want is that if "btntoday" is clicked, "datepicker" set selection to today's date. I put following code into btntoday_click() Me!DatePicker.EnsureVisible Date Me!DatePicker.SelectRange Date, Date It works only if today's date is not visible. Thanks! |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
Actually, you should redraw the control after calling this method. It will work using RedrawControl() method in C++, but currently this method is unavailable for Activex. We'll add it for the nearest release, and for the current moment as a workaround you can try to use code like this:
Not beautiful, but should work. -- WBR, Serge |
|
haitao
Newbie Joined: 17 August 2005 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Thanks! Found the Today button on datepicker control. I will go with it. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |