Automation

  • Thread starter Thread starter paradigm
  • Start date Start date
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
 
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

Similar Threads

Shell function 9
Automation 2
Open a linked file 3
2003 Bug: Reports Won't Open, Printer Issue 1
the operation on the acrobat document object failed 3
OLE Objects 2
Windows 7 Fresh install list 5
Launching a PDF file from Access97 2

Back
Top