S
Scott
Hi Everyone-
I've set the default printer for my system to be an HP laser that has the
port set to FILE, so that all print jobs will prompt the user for a file
name. Within my Access application, in VB, I use the docmd to print the
report and as expected Windows displays the prompt to direct the output to a
file. Now, I've also found code on the internet that will allow me, again
within VB, to look for the open window (which is asking for the file name)
and automatically fill in the directory, filename. This process is designed
to automate the report and not have any user intervention of any sort.
However, I'm finding that Access will wait for the docmd to finish before
moving on to the next line of code, which in this case, checks for the print
window so that it can add the directory name, etc.
Question: Is there a way to tell Access not to wait for this process to
finish before moving on or perhaps set a timeout or is there a better way to
do this?
Scott
I've set the default printer for my system to be an HP laser that has the
port set to FILE, so that all print jobs will prompt the user for a file
name. Within my Access application, in VB, I use the docmd to print the
report and as expected Windows displays the prompt to direct the output to a
file. Now, I've also found code on the internet that will allow me, again
within VB, to look for the open window (which is asking for the file name)
and automatically fill in the directory, filename. This process is designed
to automate the report and not have any user intervention of any sort.
However, I'm finding that Access will wait for the docmd to finish before
moving on to the next line of code, which in this case, checks for the print
window so that it can add the directory name, etc.
Question: Is there a way to tell Access not to wait for this process to
finish before moving on or perhaps set a timeout or is there a better way to
do this?
Scott