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

Allow MDB Downloads in IIS7
Possible to set filter on subform from parent form before subform data loads
Access sorting by 'revision date' of 'individual widget' by customer
Is there a Windows 7 ODBC driver for Access?
Using parameter queries in expressionbuilder in access 2007
Convert date from access to SQL Server with SSIS
Access 2000 Forms - open center screen?
Converting DAO to ADO
Printing an Access report and decimal place weirdness
Extract OLE object containg images using VBscript
ms access query results display problems
Record cannot be read; no read permission on 'MSysObjects'
VBA “delete” button in MS Access 2007
MS Access Typecasting Number to Double
Macro across multiple word documents
MS Access tables match and synchronize

Categories

HOME
plone
include
alfresco
cakephp-2.5
jpeg
retrofit
windows-server
ezpublish
qore
synchronization
ssl-client-authentication
kentor-authservices
modelica
google-apps-marketplace
apache-cayenne
fortumo
graphlab
footer
serilog
oracle-coherence
grails3
immutable.js
one-hot-encoding
telerik-reporting
claims-based-identity
h2db
numerical-methods
cas
rst2pdf
windows-error-reporting
media-queries
asset-pipeline
gammu
mmenu
devextreme
hot-module-replacement
sfdc
ruby-on-rails-3.1
nomethoderror
bootstrap-dialog
vao
thin
scorm
babel-core
cubic-spline
auto-update
scrollable
termination
dandelion
alphabet
gabor-filter
diagnostics
qtwebview
titanium-android
account-kit
firmata
fody
mikroc
ctest
mongocsharpdriver
impresspages
connect-by
unity-networking
vhd
prerequisites
endeca-workbench
tableau-online
arcanist
dundas
kineticjs
dia
camanjs
tablelayout
knuth
network-interface
winddk
phalanger
nsbutton
asp.net-web-api-odata
id3v2
client-side-templating
project-planning
responsive-slides
android-radiobutton
expected-exception
reactfx
htmlcleaner
hippomocks
ember-charts
algebraic-data-types
uv-mapping
dotnetnuke-5
easy-install
ril
seed
android-hardware
trusted
coderush
automount
spring-portlet-mvc
cufon
transactionscope
window-management
joyent
html-input
site.master
zend-translate
infrastructure
suppress
preference
castle-monorail
ncqrs
substrings
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