The code is something like this:
Loop
SQL query
nStatus = GetKeyState(1)
if nStatus = 1 then exit Loop
DoCmd Print
So as long as the user clicks the mouse button, the loop will exit. (Not
very Neat)
I hope to detect that as long as the user clicks on the Cancel button in
the
Print Dialog box, the loop exit.
Any comments and suggestions are welocme.
Thanks in advance
Darren Tan
dar...@letterbox.com