DTPicker VB6 event

Posted on 2009-12-21
Medium Priority
Last Modified: 2012-05-08
I have a form with a datepicker on it.  I need some action is to be completed on this form as asson as I select the date.

Please take a look at the sample:

Private Sub dtpUnaudited_Click()
DatePickerEventPopulateCAControls CStr(dtpUnaudited.Value), "UNAUDITED"
End Sub

I have also tried dtpUnaudited_Change()

Neither of this events start  DatePickerEventPopulateCAControls routine.

Can somebody explain me why and help to resolve this issue?
Question by:Aquarus
LVL 14

Accepted Solution

Brook Braswell earned 2000 total points
ID: 26096686
the change should actually do what you want...
if you are having a problem then...
place a simple message box in each event so that you will know when it fires..

private sub dtpUnaudited_change()
   msgbox "you changed me to " & dtpUnaudited.value  
end sub
LVL 13

Expert Comment

ID: 26101575

good morning!

try this event...

Private Sub dtpUnaudited_CloseUp()
    DatePickerEventPopulateCAControls CStr(dtpUnaudited.Value), "UNAUDITED"
End Sub

i hope i can give u some idea...


Author Closing Comment

ID: 31668535
It helped. Thanks

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question