Table of contents
Collapse the table of content
Expand the table of content

CommandButton.AutoRepeat Property (Access)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

You can use the AutoRepeat property to specify whether an event procedure or macro runs repeatedly while a command button on a form remains pressed in. Read/write Boolean.


expression. AutoRepeat

expression A variable that represents a CommandButton object.


The default value is False.

The initial repeat of the event procedure or macro occurs 0.5 seconds after it first runs. Subsequent repeats occur either 0.25 seconds apart or the duration of the event procedure or macro, whichever is longer.

If the code attached to the command button causes the current record to change, the AutoRepeat property has no effect.

If the code attached to the command button causes changes to another control on a form, use the DoEvents function to ensure proper screen updating.

See also


CommandButton Object

© 2018 Microsoft