William Hindman
wdhindman at dejpolsystems.com
Fri Jun 26 15:51:57 CDT 2009
A.D.
...are you using A2k3? ...is the function public?
William
--------------------------------------------------
From: "A.D.Tejpal" <adtp at airtelmail.in>
Sent: Thursday, June 25, 2009 5:27 AM
To: "Access Developers discussion and problem solving"
<accessd at databaseadvisors.com>
Subject: Re: [AccessD] Pseudo Pointer to a Function
> William,
>
>
> It appears that the procedure / function called by CallByName()
> function has to be in a class module. Could you kindly verify again
> whether it works successfully for procedures / functions contained in
> general modules ?
>
> I am getting error 438 in such a case.
>
> Best wishes,
> A.D. Tejpal
> ------------
>
> ----- Original Message -----
> From: William Hindman
> To: Access Developers discussion and problem solving
> Sent: Tuesday, June 23, 2009 23:21
> Subject: Re: [AccessD] Pseudo Pointer to a Function
>
>
> Arthur
>
> ...from my treeview menu I use either of the following in a select
> statement
> 'call a function from a module, "strObjectName" is from my
> tblSwitchboard
> CallByName modules("mdlMenuFunctions"), strObjectName,
> VbMethod
>
> 'call a sub from the switchboard form module itself
> CallByName CodeContextObject, strObjectName, VbMethod,
> strObjectAddtnl
>
> ...hth
> William
>
> --------------------------------------------------
> From: "Arthur Fuller" <fuller.artful at gmail.com>
> Sent: Tuesday, June 23, 2009 12:04 PM
> To: "Access Developers discussion and problem solving"
> <accessd at databaseadvisors.com>
> Subject: Re: [AccessD] Pseudo Pointer to a Function
>
> > Thanks, Mike. I vaguely recall that call and shall now write a little
> > tester
> > to see if it works as one might desire.
> > A.
> >
> > On Tue, Jun 23, 2009 at 11:45 AM, Mike Mattys
> > <mmattys at rochester.rr.com>wrote:
> >
> >> Hi Arthur,
> >>
> >> There is a CallByName function
> >> I saw an example at PlanetSourceCode and a few items
> >> in Google regarding its use.
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>