Eugen Fintina
Programmer
1. I added, to a form, a DTPicker control (Tools -> Options -> Controls -> ActiveX Controls -> Microsoft Date and Time Picker Control 6.0).
2. I changed the control’s name from Olecontrol1 in DTPicker.
3. If I changed the ControlSource value from none to a table field's AND if I have no records into the table I’ve got an error (OLE lDispatch exception code 0 from DTPicker: Property is read-only.. Unbiding object dtpicker.) If populated the table to which DTPicker is bound I’ve got no error.
4. Also, if I emptied the date field's value from the table I’ve got another error.
It seems that DTPicker does not allow empty or none values for ControlSource’s values. It is correct or I've done something wrong?
Can you help me with a simple workaround for this issue? I can imagine something but it seems too complicated to implement.
2. I changed the control’s name from Olecontrol1 in DTPicker.
3. If I changed the ControlSource value from none to a table field's AND if I have no records into the table I’ve got an error (OLE lDispatch exception code 0 from DTPicker: Property is read-only.. Unbiding object dtpicker.) If populated the table to which DTPicker is bound I’ve got no error.
4. Also, if I emptied the date field's value from the table I’ve got another error.
It seems that DTPicker does not allow empty or none values for ControlSource’s values. It is correct or I've done something wrong?
Can you help me with a simple workaround for this issue? I can imagine something but it seems too complicated to implement.