RunMacro


Runs a macro.

Syntax

DoCmd.RunMacro MacroName[, RepeatCount][, RepeatExpression]

with the following parameters:

MacroName

A String defining the name of the macro in the current database to run.

RepeatCount

An Integer indicating the number of times the macro is to run.

RepeatExpression

A numeric expression that causes the macro to terminate when it evaluates to 0 (or False).

Comments

  • MacroName can use the MacroGroupName.MacroName syntax to run a particular macro in a macro group.

  • If both RepeatCount and RepeatExpression are omitted, the macro runs once.

  • If both RepeatCount and RepeatExpression are used, the macro runs RepeatCount times or until RepeatExpression is False, whichever occurs first.




Access VBA Programming
Microsoft Access VBA Programming for the Absolute Beginner
ISBN: 1598633937
EAN: 2147483647
Year: 2006
Pages: 214
Authors: Michael Vine

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net