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

How should I lock the table in this VB6 / Access application?
insert records with request.form gives me JET error 80040e14
How can i compare same field in 2 different tables when it match or likes?
Access 2007 Textbox Date Formatting
table locked or in use when calling RunSQL
MS Access = referencing a control that is within a sub form
Get Name of Current VBA Function
MS Access 2010: How do forms communicate values to each other?
MSAccess - populate text box with value from query
How do I revert to default System.mdw after doing a SetDefaultWorkgroupFile?
ms-access 2007 runtime and lockWindowUpdate
Show Report Pages Count Only On Print
Custom Record Navigation
How to lock specific rows in a subform when a form loads?
If [ComboBox] Is Null Statement in VBA/Access 2007
Check Microsoft Access Form Values before Save

Categories

HOME
twitter
vim
openlayers
netsuite
activiti
react-virtualized
onedrive
sd-card
spring-cloud-stream
jpeg
ip
fingerprint
mvvmcross
echarts
directx
cross-validation
esper
session-variables
maude-system
facebook-php-sdk
google-cloud-ml
php-7.1
n-gram
orchardcms
ibm-odm
serverless-framework
systemc
django-admin
pc
database-replication
beyondcompare
ml
facebook-instant-articles
core-text
numerical-methods
kannel
bootstrap-material-design
applozic
large-file-upload
webkitspeechrecognition
tinymce-4
bcd
perlin-noise
main
automake
swift3.0.2
webdriver-manager
streamreader
eigenvalue
midl
total-commander
galleria
qwt
long-polling
hibernate-tools
strptime
upstart
winscp-net
forever
flutterwave
spring-mongodb
django-scheduler
google-feed-api
dstu2-fhir
file-writing
player
simple-framework
feedback
wordml
embedded-code
android-listview
deis
python-green
modalpopup
rake-task
codeigniter-url
javafx-webengine
internet-connection
eol
sgen
yorick
seaside
meteor-velocity
cloud-connect
algebraic-data-types
mbr
quantlib-swig
gridfs
apc
google-cloud-save
padarn
xamlparseexception
sqlperformance
ember-app-kit
ocunit
robotics-studio
factory-method
e4x
twrequest
regsvr32
cinema-4d
rfc1123
recent-documents
actionview
site.master
sudzc
subviews
web-application-design
jquery-ui-droppable
database-management

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