Problems with use of GetDayBold event method of a MonthView contro

G

Guest

I've been putting together an Access application using Access 2003 SP2 from
my Office Professional install that is running on a XP Pro SP2 machine. The
file is saved in Access 2000 format file. I have a form in the project on
which I use the MonthView ActiveX control from MSComCtl2.ocx (Class
MSComCtl2.MonthView.2) Unfortunately the funtionality that I really need,
i.e. responding to the event GetDayBold is giving VBA some grief, namely:

The expression GetDayBold you entered as the event property setting produced
the following error: Visual Basic can't convert the data type of one of the
arguments you entered.

The testing prototype I've been using is as follows, even more stripped down
than the MSDN demos to just try to prove some I'm getting it to be called (no
joy yet):

Private Sub MonthView1_GetDayBold(ByVal StartDate As Date, ByVal Count As
Integer, State() As Boolean)
MsgBox "Done Something"
End Sub

My suspicion lies with the array param as the problem. Has anybody used
GetDayBold Successfully in this sort of context or having had the same
problem got it to work or found a workaround. Any assistance much appreciated.

I can in extremis resort to wrapping the common control in my own ocx
wrapper that would package the event in a more palatable manner, but would
rather avoid the extra work if possible so thought I'd ask here first.

Thanks in advance,

Paul.

VBA: Retail 6.4.9972
Forms3: 11.0.6550
mscomct2.ocx: 6.00.8877
Access 2003: 11.6566.8036

Any further details happily provided if you think you can help.
 

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