Automation

P

paradigm

I am working with Access 2003. I need to view a pdf file and I open it by
launching Adobe Reader using
fHandleFile FName, WIN_NORMAL
using code from
http://www.utteraccess.com/forums/printthread.php?Cat=&Board=90&main=305631&type=thread
but the fHandleFile function is widely available from many sites.
I now need to be able to close the Adobe Reader when an option in Access is
selected.
How do I close another Windows application from inside an Access module.
Alex
 
D

Daniel

Sound complicated for nothing.

Why not simply use

docmd.followhyperlink "pathtofile\filename.pdf"

as for your second issue. simply use an if statement to check if the option
is checked/active or not. If so...docmd.followhyperlink, if not... don't

Perhaps I didn't understand the issue properly, but this would be my approach.
 

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