Hi All,
I am trying to set default date in the DateTimePicker using VBA in access 2007. But I am getting the below error:
Code:
Run-time error '2763'
DTPicker returned the error: An error occurred in a call to the Windows Date and Time Picker control
I am able to get the date sucessfully using the query. But not able to pass the same to the DTPicker. I have tried below codes but with same error.
andCode:TxtBox_Date.Value = rst!Event_Date DTPicker_EventDate.Value = TxtBox_Date
andCode:DTPicker_EventDate.Value = TxtBox_Date.Text
andCode:DTPicker_EventDate.Value = TxtBox_Date.value
I am using Access 2007 on Windows 7 Professional.Code:DTPicker_EventDate.Value = rst!Event_Date
Please guide me on where am I going wrong and what should I do get this fixed.
Thanks for all your time and help.
Regards
Sudhir