Re: Lebans Calendar code problem
- From: "mscertified" <rupert@xxxxxxxxxxxxx>
- Date: Fri, 24 Jun 2005 11:56:02 -0700
oops, yes silly error. thanks
"Brendan Reynolds" wrote:
> In VBA, your declaration line will result in dteFrom being created as a
> Variant, only dteTo will be created as a Date. Try ...
>
> Dim dteFrom As Date
> Dim dteTo As Date
>
> --
> Brendan Reynolds (MVP)
>
>
> "mscertified" <rupert@xxxxxxxxxxxxx> wrote in message
> news:3004F725-67A6-4B27-8577-16BDEB86131F@xxxxxxxxxxxxxxxx
> > I'm attempting to use the API Calendar from Mr Leban's site
> > Below is my execution code, I get a "By Ref Argument error" on the 2nd
> > parm
> > of the function call. I followed the instructions exactly. Any ideas?
> >
> > Private Sub butSetTarget_DblClick(Cancel As Integer)
> > ' Uses Calendar Window
> > Dim dteFrom, dteTo As Date
> > dteFrom = Date
> > dteTo = 0
> > If ShowMonthCalendar(mc, dteFrom, dteTo) Then
> > MsgBox dteFrom
> > End If
> > End Sub
>
>
>
.
- References:
- Lebans Calendar code problem
- From: mscertified
- Re: Lebans Calendar code problem
- From: Brendan Reynolds
- Lebans Calendar code problem
- Prev by Date: RE: Medical Record number
- Next by Date: Lebans Calendar Control questions
- Previous by thread: Re: Lebans Calendar code problem
- Next by thread: Re: Lebans Calendar code problem
- Index(es):
Relevant Pages
|