GPGeorge - I apologize as I'm new to the forum so I'm trying my best to communicate, thanks for taking a look at this. On my previous reply from yesterday at 4:40 PM you should see an attached ZIP file with a test database once you unzip. This database provides repro if you do these two experiments.Can you provide a repo accdb so we can try to investigate? It's hard to noodle out possible problems in the abstract.
1. Open the Immediate Window, and type "ReorderEe" and run - it will spit out a Timing of running the update loop, which on my dev machine is around 8 ms.
2. Then open the FrmTest screen, which has a button called "Command18". Click this button to run the same ReorderEe function. If you check Immediate window, you'll see a new timing line, which for me usually says something like 250 ms.
The button Command18 simply calls ReorderEe - so in principle calling the function from the immediate window, and calling it from a click event should be identical. But it seems that if a table is bound to an object on the form (the ListBox) and at the same time has a Data Macro, it creates some sort of constant refresh that slows down the process of updating records considerably. What's even more interesting is you can even have the FrmTest open while calling ReorderEe from the immediate window, and you'll still get the fast timing above - the difference seems to be purely whether the form was the source of the event or not.
Thanks.