PC Review


Reply
Thread Tools Rate Thread

Date Time Picker

 
 
Webtechie
Guest
Posts: n/a
 
      2nd Oct 2009
Hello,

I have a datetime picker on a userform. It works great as far as getting a
date from user.

However, after a date is selected, I check reservations for that date. I've
noticed that I need to add the same code to the dropdown event and the change
event for the datetime picker.

If the date is already on a the date for the next customer, the change event
won't fire. Therefore, I've added code to both drop down and the change.

But really, what I need is code to run after the user has selected a date.

Is there an event that tells me a date has been clicked on the pop up
calendar part of the datetime picker? That would be ideal.

Thanks,

Tony
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      2nd Oct 2009
Private Sub DTPicker1_CloseUp()
MsgBox "Selected"
End Sub

OR

Exit event after selection


If this post helps click Yes
---------------
Jacob Skaria


"Webtechie" wrote:

> Hello,
>
> I have a datetime picker on a userform. It works great as far as getting a
> date from user.
>
> However, after a date is selected, I check reservations for that date. I've
> noticed that I need to add the same code to the dropdown event and the change
> event for the datetime picker.
>
> If the date is already on a the date for the next customer, the change event
> won't fire. Therefore, I've added code to both drop down and the change.
>
> But really, what I need is code to run after the user has selected a date.
>
> Is there an event that tells me a date has been clicked on the pop up
> calendar part of the datetime picker? That would be ideal.
>
> Thanks,
>
> Tony

 
Reply With Quote
 
Webtechie
Guest
Posts: n/a
 
      2nd Oct 2009
Jacob,

That was exactly what I needed. I didn't even know of the event closeup.
WOW!

Thanks.

"Jacob Skaria" wrote:

> Private Sub DTPicker1_CloseUp()
> MsgBox "Selected"
> End Sub
>
> OR
>
> Exit event after selection
>
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "Webtechie" wrote:
>
> > Hello,
> >
> > I have a datetime picker on a userform. It works great as far as getting a
> > date from user.
> >
> > However, after a date is selected, I check reservations for that date. I've
> > noticed that I need to add the same code to the dropdown event and the change
> > event for the datetime picker.
> >
> > If the date is already on a the date for the next customer, the change event
> > won't fire. Therefore, I've added code to both drop down and the change.
> >
> > But really, what I need is code to run after the user has selected a date.
> >
> > Is there an event that tells me a date has been clicked on the pop up
> > calendar part of the datetime picker? That would be ideal.
> >
> > Thanks,
> >
> > 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
Setting current date on date/time picker control =?Utf-8?B?RG91Z00=?= Microsoft Access VBA Modules 1 19th Jul 2005 07:07 PM
I am trying to use the Microsoft Date and Time Picker control and I am getting the following error "an error occured in a call to the windows date and time picker control" in access 2000 Ralph Malph Microsoft Access Forms 0 25th Oct 2004 07:00 PM
MS Date and Time Picker Control defaults to today's date =?Utf-8?B?UmF2aQ==?= Microsoft Outlook Form Programming 1 23rd Jan 2004 03:31 PM
MS Date and Time Picker Control defaults to today's date =?Utf-8?B?UmF2aQ==?= Microsoft Outlook VBA Programming 1 22nd Jan 2004 02:48 PM
MS Date and Time Picker Control defaults to today's date =?Utf-8?B?UmF2aQ==?= Microsoft Outlook Program Addins 0 14th Jan 2004 06:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:46 AM.