Current date on cool datepicker - SJMcAbney?

PierreR

Registered User.
Local time
Today, 17:52
Joined
Jul 21, 2004
Messages
101
How can I maintain the current date on this date-picker that Miles O aka SJMcAbney provided? The value line doesn't want to take anything but a date-constant. It has not worked from the VBE either.

Could SJMcAbney please help?
 

Attachments

Works good! Thanks SJ.

I would like ctlPicker to keep its Value at the current date AUTOMATICALLY, and that is what I could not make work. I think because of the sequence of the events. The error message says that it is read-only.

In what Event (of the form or ctlPicker) could the line be applied safely?

Code:
Me.ctlPicker.Value = Date
 
PierreR said:
In what Event (of the form or ctlPicker) could the line be applied safely?

The line works fine but I don't know what you mean by automatically - at what moment?

I'm guessing you mean on switching between records. If so, then the answer is the Current event.
 
Do you think it would be okay to put it in the On_Enter Event of the ctlPicker itself?
 
I mean without having to click a button - I think it does work well in the On_Enter of the ctlPicker. I'll use it for a few days to test it.
 
Thanks for your invaluable presence on this forum.
 

Users who are viewing this thread

Back
Top Bottom