I have a group that upgraded to 2010. This code has never been an issue until now. They have a database that uses date functions, and we are getting this error. Run Time Error 2683 "There is no Object in this Control"
I have corrected all of the "Missing" References, and have now tried to re-register all of the references. Am still coming up with this error.
This is the code:
Private Sub StartDate_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Set cboOriginator = StartDate
StartDateCalendar.Visible = True
If Not IsNull(StartDate) Then
StartDateCalendar.Value = StartDate.Value
StartDateCalendar.Value = Date
The previous references that were missing were Microsoft Excel 14.0 Object Library and Microsoft Outlook 14.0 Object Library. I've changed them to 12.0.
I also have the following references selected:
-Visual Basic for Application
-Microsoft Access 12.0 Object Library
-Microsoft DAO 3.6 Object Library
-Microsoft ActiveX Data Objects 2.8 Library
Any help would be greatly appreciated.