DTPicker Default Date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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 <--
 
Me.DTPicker7.Value = Date, change the 7 for what ever # that your DTpicker
assigns. Enjoy, Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top