
Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
THANKS!
> > Hi,
> >
[quoted text clipped - 40 lines]
> End Function
> '----- end of revised code -----
> The Eval function can't be used to
> perform an assignment statement like
> that -- it can only be used to evaluate
> an expression that returns a
> value.
But, a very nice feature is that, because Functions, by definition, return a
value, you can execute a Function, which might well do something in addition
to just returning a value.
Larry Linson
Microsoft Access MVP
Dirk Goldgar - 09 Jul 2005 05:27 GMT
> > The Eval function can't be used to
> > perform an assignment statement like
[quoted text clipped - 5 lines]
> return a value, you can execute a Function, which might well do
> something in addition to just returning a value.
Indeed yes! The function doesn't even have to return any meaningful
value -- it can return Null, either explicitly or by default. When
using Eval this way, you do have to be sure to include the parentheses
after the function name, even if the function doesn't require any
arguments. For example,
v = Eval("MyFunction()")

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)