View Full Version : Runcode through a macro


abhinarulkar
12-02-2004, 01:17 AM
Hello,
I have defined a macro in MS Access database. The macro is supposed to execute a method, hence I have defined the action of the macro to be "Runcode". Upon declaring a runcode option, we have to define the function name which would get executed. In many places I have seen these to be defined in two ways as shown below:-

=xGetAllUsers()

and

xGetAllUsers()

Kindly let me know whats the difference between these two ways.
Thanks
Abhishek.

Mile-O
12-02-2004, 02:26 AM
Why have a macro? You can type =xGetAllUsers() directly into the event.

I can't say I've noticed this myself but I'd assume that the former is calling a function as a return value is expected and the latter a subroutine where a process is requested but no return value.