DTPicker

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
 
T

Tom van Stiphout

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
 
B

bloemeke

just move the focus of the date and timepicker first to another control. then
you can set the value to a date or ""
 

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

Top