Run Macro Repeat Count


B

Bertie

Hi, I want to set the repeat count of a macro to be the number of records
in a table - what is the variable for this?

Cheers
 
Ad

Advertisements

S

Steve Schapel

Bertie,

One approach to this would be to make a continuous view form based on
the table, in the footer of the form put an unbound textbox with its
Control Source set to =Count(*) and then in the Repeat Count argument of
the RunmMacro action, refer to this textbox using syntax such as
=[Forms]![MyForm]![MyTextBox]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top