I'll assume that your form is called frmYourForm.
(a) Place an unbound text control on the form. Name it txtCounter, and set its Locked Property to True and Enabled property to false.
(b) Prior to the loop in the code, initialise the counter; eg.
Forms!frmYourForm!txtCounter = 0
(c) Within the loop, incriment the counter; eg.
Forms!frmYourForm!txtCounter = Forms!frmYourForm!txtCounter + 1
(d) At the end of the loop, clear the counter; eg.
Forms!frmYourForm!txtCounter = Null
After each of the above assignments, add the following line, to ensure that the form display updates:
Forms!frmYourForm.Repaint
Alternatively, you may also find it useful to use the syscmd method, to show status information on the status line at the bottom of the screen. See Access online help for more info, and examples on how to use this.
Hope this helps,
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)