Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comile Error- when using a calneder

Status
Not open for further replies.

shaz123

Technical User
Oct 13, 2006
60
DE

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 the first line of 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
 
Double check the references:
menu Tools -> References ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top