DTPicker

  • Thread starter Thread starter MikeS
  • Start date Start date
M

MikeS

Can anyone tell me how to set a default for a DTPicker? If I use the
following code:

Me.DTPicker.Value = Now()

I get the error "DTPicker returned the error: Property is read-only.

Can anyone help with this, please?

Thanks in advance.
MikeS
 
On Tue, 18 Aug 2009 14:20:01 -0700, MikeS

Create a new database, first form, and put a dtpicker on it. Put your
code (with the correct control name) in the form_load event. I bet you
it will work - it did for me. Compare this with your app and you will
find the problem.

-Tom.
Microsoft Access MVP
 
just move the focus of the date and timepicker first to another control. then
you can set the value to a date or ""
 
Back
Top