Click to See Complete Forum and Search --> : DTPicker


Andrew
October 1st, 1999, 06:58 PM
Hi folks,

What is the best way to assign the value in a DTPicker to a variable? Right now I have the following:

Dim Date1 As Date

Date1 = DTPicker1.Day & "/" & DTPicker1.Month _
& "/"& DTPicker1.Year

which works but is not very efficient. Is there any way to assign the entire value of the DTPicker to the variable?

Thanks so much,

Andrew

Bruno
October 2nd, 1999, 09:50 AM
>way to assign assign the entire value ...
private Sub DTPicker1_Change()
Dim Date1 as date
Date1 = DTPicker1.Value
Caption = Date1
End Sub