DTPicker Default Date

L

Lambi000

I am using the Calendar control for from/to dates in my report menu. All I
want to do is make the two controls have today's date instead of me assigning
a value in each control's properties. Any ideas on how to do that?

Thanks!
 
S

Stefan Hoffmann

hi,
I am using the Calendar control for from/to dates in my report menu. All I
want to do is make the two controls have today's date instead of me assigning
a value in each control's properties. Any ideas on how to do that?
You have to assign Now() to your DateTimePicker / Calender control in
code, e.g. in the Form_Open event.


mfG
--> stefan <--
 
R

RobUCSD

Me.DTPicker7.Value = Date, change the 7 for what ever # that your DTpicker
assigns. Enjoy, Rob
 
Top