active x Calendar problem

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top