CONTACT US: 778-373-4422 | info@mackenziemackenzie.com


Photo by athree23 from Pixabay

VBA Mod Function with DoEvents: Prevent Not Responding Messages and Provide Feedback on Access Forms

11-September-2020
In this episode, we’re going to explore how to use the VBA Mod function with the DoEvents command, to allow form updates while your procedure is running. We’ll use a procedure to loop through about 23,000 records, while performing some task along the way. You will see that Access will lock up, and show “Not Responding” at the top of the screen while it runs. After changing our procedure to use the Mod function with DoEvents, you will see that Access does not lock up. It displays a progress counter on a form as the procedure runs, and does not show “Not Responding” at the top of the screen. This handy technique is extremely valuable for correcting procedures that take a lot of time, lock up users' computers, and prevent them from using their computer normally while some long process executes. It also allows you to give some feedback to the user as to how far a process has gone (and has to go).

>

MS Access projects need expertise? Contact me today!

3 Reasons Why You Should Learn Data Techniques

Find 3 big reasons why you should learn data techniques if you are a professional or business person.

Read article

About our workshop

The Professional Problem, 3 Things They Need, and 1 They Don't Have

Why do people constantly run into problems with their data, even when they are highly trained in their area?

Read article

About our workshop

Why Finding Uniqueness is the Key: 6 Methods to Help

Find out why keys and uniqueness are so important for data transformation and data analysis.

Read article

About our workshop

When to Excel and When Not To: Why Specialists Don't Use Excel for Data Transformations

Start your journey in data transformation, and learn why specialists don't use Excel to transform raw data for analysis.

Read article

About our workshop