Avoid busy wait in Access 2003
I'm doing a thing in Access 2003 and VBA. I do lots of iteration and sometimes something happens and I would like to halt and notify the user, but not with a MsgBox but in a text field. So, I print a message in it and use a loop that checks a global "hold" boolean. With DoEvents, Windows checks for KeyDown and if it is there, hold is set to False and iteration continues. But, I suspect there is a better way, because isn't that an example of "busy waiting"? Although it is not that "busy", just a boolean check, it is busy enough for my computer to start make sounds, and the overall impression is not robust. Is there a way to just wait (do nothing) and then continue on a key down interrupt?
You do not have to use a msgbox, you can define your own form with a textbox on it and the appropriate code. Open this form with a parameter of acDialog and it will halt the code the same as a msgbox
Is there any possible way to lock query navigation pane (access)?
Adding Pages to an Access Tab Control using VBA
Build VBA Sql statement using 3 multi-select Listboxes and a date range in MS Access 2016 32 bit
ms-access remove fails on the same date from the same person when there is a pass
Access 2016 vba to send email based on query results and record date email sent back to same table
Count unique values in Access
If ComboBox on Form is blank, Then
Trying to do a calculation with data from a date and the data from the day before
MS Access Front-end: Does each user need their own copy?
trying to filter subform based on contents of field on main form
How to use MS access on a server where MS Office is not installed
How do i import and eliminate first two row of website in msaccess while importing html pages
Multi criteria dlookup issue
Count all checkboxes in ms-access form…what am I doing wrong?
How do I set a default selection to a Listbox in MS Access
Microsoft Access not overwriting when exporting a query to excel