View previous topic :: View next topic |
Author |
Message |
c00zzan0stra New Member
Joined: 18 Oct 2006 Posts: 12 Location: New York, NY USA
|
Posted: Fri Jan 04, 2008 4:01 pm Post subject: Date Picker current date |
|
|
How do you set the date in a date picker control.
When I do:
Me.dpFrom.Value = Now()
I get an error about the control is read only. |
|
Back to top |
|
|
franke Master Poster
Joined: 26 Jun 2004 Posts: 161 Location: Indiana, USA
|
Posted: Fri Jan 04, 2008 4:26 pm Post subject: |
|
|
You have to put it in the OnLoad event:
Code: | Private Sub Form_Load()
Me.dpFrom.Value = Date
Me.dpThru.Value = Date
End Sub |
If you put it on the OnOpen you will get that error
Keep in touch. |
|
Back to top |
|
|
|