active x Calendar problem

  • Thread starter Thread starter Bryan
  • Start date Start date
B

Bryan

Hi. Can someone Help me. I was trying to put a calendar
(from active x calendar 10.0) in my access 2000 database
under a date field using a combo box as the trigger. I
found a how to from
http://www.fontstuff.com/access/acctut09pfv.htm Inwhich I
followed the instructions and put the code in vb- on
mouse down from the date field event tab in properties
Private Sub Start_Date_mousedown(ButtonAsintereger,etc.)
ocxCalendar.Visible = True
ocxCalendar.SetFocus
If Not IsNull(Start Date) Then
ocxCalendar.Value = Start Date.Value
Else
ocxCalendar.Value = Date
End if
End Sub
When I go Back to form I get a message: The bound or
unbound object frame you tried to edit doesn't contain a
OLE object. I have check the spelling and put
everything the same as instruction paper. I tried this
same instruction on a other computor with a different
database and it works fine. Also I had another code in
this datefeild that I had if you dblclick todays date will
be put in and if you dblclick it again the date will be
taken out. After I couldn't get calendar code to work I
had deleted the dblclick date code out. The message still
comes up doesn't contain OLE object.I've tried to start
all over it still does the same thing.
Thanks Bryan
 
Back
Top