By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,122 Members | 927 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,122 IT Pros & Developers. It's quick & easy.

Open PDF

P: n/a
Hi all,

I'm trying to open a PDF file from a form in access 97.

I've tried followhyperlink a few different ways, and I tried hard
coding "hyperlink address" into a form label. The only result that I
get is that the reader opens, then immediately closes.

I can open a pdf from an explorer window with no problem

I know I can use shell, but I'd rather not, because it's a mystery to
me.

Any ideas? I'm starting to get ultra frustrated.

Thanks!!!!
Jan 9 '08 #1
Share this Question
Share on Google+
6 Replies


P: n/a
onefootout wrote:
Hi all,

I'm trying to open a PDF file from a form in access 97.

I've tried followhyperlink a few different ways, and I tried hard
coding "hyperlink address" into a form label. The only result that I
get is that the reader opens, then immediately closes.

I can open a pdf from an explorer window with no problem

I know I can use shell, but I'd rather not, because it's a mystery to
me.

Any ideas? I'm starting to get ultra frustrated.

Thanks!!!!
I've never had a problem with
http://www.mvps.org/access/api/api0018.htm

Dealing
http://www.youtube.com/watch?v=NZwu54S94-4
Jan 9 '08 #2

P: n/a
Yeah, I've seen this code before, but I'm really not savvy enough to
use it. I don't know where to put it, and I don't know how to change
it to do what I want...

What I was hoping to find out is why the followhyperlink isn't working
correctly.
Jan 9 '08 #3

P: n/a

"onefootout" <se*******@gmail.comwrote in message
news:fa**********************************@l32g2000 hse.googlegroups.com...
Yeah, I've seen this code before, but I'm really not savvy enough to
use it. I don't know where to put it, and I don't know how to change
it to do what I want...

What I was hoping to find out is why the followhyperlink isn't working
correctly.
Put the code in a module and call-it from an event procedure on your form.

ex.

Call fHandleFile(Me![Path], vbMaximizedFocus)

As for working in Explore, I think Explore uses the same calls that the code
in Salad's link uses.
Jan 9 '08 #4

P: n/a
Put the code in a module and call-it from an event procedure on your
form.
>
ex.

Call fHandleFile(Me![Path], vbMaximizedFocus)
Ok, so I'm still kind of contused.

I put the whole piece of code into a module, untouched, and save it.
Then call it from an on_click? So I can just make a button, and flop
this: Call fHandleFile(Me![Path], vbMaximizedFocus) into the
procedure?
Jan 9 '08 #5

P: n/a

"onefootout" <se*******@gmail.comwrote in message
news:ca**********************************@1g2000hs l.googlegroups.com...
Put the code in a module and call-it from an event procedure on your
form.

ex.

Call fHandleFile(Me![Path], vbMaximizedFocus)

Ok, so I'm still kind of contused.

I put the whole piece of code into a module, untouched, and save it.
1) Put it in a module, then edit the text to put lines of code seperated by
new lines back together.
2) Read the code to understand what it is doing. You don't know me or Salad
or Dev Ashish, be careful with "Free" code.
3) Compile to verify the code then save the module.
Then call it from an on_click? So I can just make a button, and flop
this: Call fHandleFile(Me![Path], vbMaximizedFocus) into the
procedure?
Yes, but replace Me![Path] with the name of your control holding the file
name.
Jan 9 '08 #6

P: n/a
This may seem a bit obvious but I have just put

c:\pictureshow.pdf

in the Hyperlink property of a button and it woks perfectly, have you
tried this?
Patric


On Wed, 9 Jan 2008 09:53:40 -0800 (PST), onefootout
<se*******@gmail.comwrote:
>Hi all,

I'm trying to open a PDF file from a form in access 97.

I've tried followhyperlink a few different ways, and I tried hard
coding "hyperlink address" into a form label. The only result that I
get is that the reader opens, then immediately closes.

I can open a pdf from an explorer window with no problem

I know I can use shell, but I'd rather not, because it's a mystery to
me.

Any ideas? I'm starting to get ultra frustrated.

Thanks!!!!
Jan 10 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.