AppActivate Problem

J

John McEnany

Using MS Access 2000 under Windows 2000, I am using the
shell function to open Quick View Plus to print a series
of .tif images. When QVP opens to print, it pops up an
OK/Cancel print dialog box. I would like to SendKeys to
click "OK" but for the life of me I can't get the dialog
box to have focus. Playing with shell function settings
like vbNormalFocus, etc., don't do the trick. When I try
AppActivate "Quick Print", it generates an error when
called from within the routine that opens QVP via the
shell function (tho AppActivate "Quick Print" will work
if I call it from a separate button). I'm not much of a
Windows programmer, but if someone can point me in the
direction of the right Windows function to get focus
where I want it from within the calling routine (or some
other workaround) I would be grateful.
Thanks much!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top