I am trying to add a calender to a form but cant seem to get the code I have to run
I changed the date text box to a combo box
I inserted the calender control
Inserted the following code under the mouse down event of the date combo box
Combo box name dteTransactionDate
Calender name ocxCalender
ocxCalender.Visible = True
ocxCalender.SetFocus
If Not IsNull (dteTransactionDate) Then
ocxCalender.Value =DteTransactionDate.Value
Else
ocxCalender.Value = Date
End If
End Sub
When i return to the form view after entering this code it gives an runtime error 424 when i attempt to debug it highlights the ocxCalender.Visible = True
Can Someone help Please