G
Guest
I have a Date and Time Picker Control and I want to set the Value to today's
date. It seems like it should be easy:
Me.DtPicker1.Value = Date
I have also tried:
Dim Today as String ' also tried Date
Today = Date ' also tried Now
Me.DTPicker1.Value = Today
In all cases I get the error message:
Run-time error '2448':
You can't assign a Value to this object.
I have also tried to set focus and many other ideas.
The control is unbound - and I ultimately want to use the value to set a
date variable in a module. This part works - I just want to set the
displayed value when I open the form to Today's date.
Argh!
Rob.
date. It seems like it should be easy:
Me.DtPicker1.Value = Date
I have also tried:
Dim Today as String ' also tried Date
Today = Date ' also tried Now
Me.DTPicker1.Value = Today
In all cases I get the error message:
Run-time error '2448':
You can't assign a Value to this object.
I have also tried to set focus and many other ideas.
The control is unbound - and I ultimately want to use the value to set a
date variable in a module. This part works - I just want to set the
displayed value when I open the form to Today's date.
Argh!
Rob.