ms-access


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

Related Links

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

Categories

HOME
client
gitlab
cloud
homebrew
sd-card
react-redux
dxl
ebean
mvvmcross
serverspec
awesome-wm
tomcat6
nano-server
reveal.js
mapserver
google-apps-marketplace
task
serilog
solaris-10
pythonanywhere
nas
tibco-mdm
dynamic-featured-image
poltergeist
wpfdatagrid
web-api-testing
librato
socialengine
form-data
overriding
disassembling
multilingual
mixture-model
streamsets
vapor
hue
mesos-chronos
avro4s
nand2tetris
vao
google-datalayer
smartcontracts
azure-application-gateway
drupal-6
jxcore
font-size
pintos
static-ip-address
instant
dstu2-fhir
measures
asp.net-4.5
pcf
ubuntu-10.04
qgraphicsview
sdf
whois
revolution-r
system.management
unity-networking
pervasive-sql
google-places
cannon.js
jmeter-maven-plugin
atk4
rgeo
drawbitmap
cakephp-3.1
microbenchmark
graph-api-explorer
rdtsc
seaside
dealloc
balanced-payments
message-driven-bean
mbr
terminal-services
page-layout
.aspxauth
dotnetnuke-5
tws
file-locking
jquery-mobile-dialog
sqlperformance
orchardcms-1.7
free-variable
onsubmit
chrono
asyncfileupload
netbeans-7.1
gamequery
fixed-width
gacutil
multiple-languages

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App