A
Aaron
Hello,
I am still fairly new to Access and VBA so there might not even be a way to
do this, but what I have is a subroutine that writes to a word document.
Since this word document is fairly large it takes a couple of seconds to
write to the document. If the user accidentally selects and executes the
option that writes to the word document, the user is forced to wait until the
document is finished being written too or to force close MS Access. Both of
these actions are undesirable.
What I would like to know if there is way that the user can force quit the
subroutine, or to stop writing to the document and close the document by
pressing a button on a form or even pressing a key on the keyboard would work
too. Keep in mind that the word document isn't visible until the subroutine
is finished writing to the document.
I have not found any solutions so far, so any help or even sample code would
help a ton.
Thanks for any help in advance,
Aaron
I am still fairly new to Access and VBA so there might not even be a way to
do this, but what I have is a subroutine that writes to a word document.
Since this word document is fairly large it takes a couple of seconds to
write to the document. If the user accidentally selects and executes the
option that writes to the word document, the user is forced to wait until the
document is finished being written too or to force close MS Access. Both of
these actions are undesirable.
What I would like to know if there is way that the user can force quit the
subroutine, or to stop writing to the document and close the document by
pressing a button on a form or even pressing a key on the keyboard would work
too. Keep in mind that the word document isn't visible until the subroutine
is finished writing to the document.
I have not found any solutions so far, so any help or even sample code would
help a ton.
Thanks for any help in advance,
Aaron