Application.followhyperlink opens adobe but closes as soon as open

  • Thread starter Regan via AccessMonster.com
  • Start date
R

Regan via AccessMonster.com

Hi

i have the following code to open a pdf file, it open and closes adobe in a
flash. i want it to keep adobe open
any ideas?

Private Sub LstPDF_DblClick(Cancel As Integer)

Dim strFileName As String
Dim strfile As String
Dim strFileNum As String

strFileName = Me!LstPDF.Column(0)
strFileNum = Me!txtFileNumber
strfile = "\\Richard\My Documents\VCS\VCS_Files\" & strFileNum & "\" &
strFileName
Debug.Print strfile
Application.FollowHyperlink strfile

End Sub

\\Richard\My Documents\VCS\VCS_Files\1218\DPS26012t.pdf <---Example of Full
Path

when double clicking on file in explore it opens fine
i've tried adding File: in strfile strfile="file:\\Richare\e.t.c
and i've looked at previous threads and haven't found a soultion
any help would be appreciated

Regan, Cheers
 
G

Guest

Had the same problem just about 2 weeks ago. Do the upgrade with Adobe and
it will be taken care of. its not an access problem
 
R

Regan via AccessMonster.com

BrianPaul said:
Had the same problem just about 2 weeks ago. Do the upgrade with Adobe and
it will be taken care of. its not an access problem
Thanks BrainPaul

Just downloaded the update and it works fine now,

Thanks alot

Regan
 

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