Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command button to open PDF files

Status
Not open for further replies.

qwerty70

Technical User
Dec 13, 2005
73
GB
Hello,

I have a text box (txtTagNumber) and a command button (cmdOpenPDFfile) on a form. If I put the tag number in the text box and hit the command button I need to open the corresponding PDF file.

Can someone help me on this please.

Thanks in advance.

qwerty70
 
Have a look at the FollowHyperlink method.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
In case it helps others here is a solution I have just done:

Dim imagepath As String

Part = Forms!frmPart!PartID
imagepath = "c:\temp" & "\" & PartID & ".pdf"

Me.pageDrawing.SetFocus
objWebBrowser.Navigate imagepath
 
. . . or have a look at the [blue]Shell[/blue] function . . .

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top