Compile error Message when using a calender

shaz123

Registered User.
Local time
Today, 07:11
Joined
Sep 8, 2006
Messages
81
I have a form with a number of textboxes, two of the textboxes represent a date field, a calender pops up once the user has clicked on the date textbox.
Once the calender appears the user can select the date from the clander which is then directly inputed into the field bound to the form. However When i try this were i developed the system it works, but when i try at a different depot i recieve the following message:

Compile Error:

"Object Library Feature not supported",
I recieve the above message when it is trying to run the code below:

Code:
Private Sub cboStartDate_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
' Note which combo box called the calendar
    Set cboOriginator = cboStartDate
' Unhide the calendar and give it the focus
    ocxCalendar.Visible = True
    ocxCalendar.SetFocus
' Match calendar date to existing date if present or today's date
    If Not IsNull(cboOriginator) Then
        ocxCalendar.Value = cboOriginator.Value
    Else
        ocxCalendar.Value = Date
    End If
End Sub
 

Users who are viewing this thread

Back
Top Bottom