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.
 
Back
Top