Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > General Computer Support > open pdf file with Access!!

Reply
Thread Tools

open pdf file with Access!!

 
 
yang yang is offline
Junior Member
Join Date: Aug 2007
Posts: 1
 
      08-23-2007
could some one give me the code to open a pdf file in special folder
for example:
----------------------------------------------------------------------

Private Sub CmdOpen_Click()
Dim FilePath As String
FilePath = "N:\" & AccountNo & ".doc"
'Private Sub cmdOpenWordDoc_Click()
'Check to see that there is a document file path associated with the record
If IsNull(FilePath) Or FilePath = "" Then
MsgBox "Please Ensure There Is A File Path Associated For This Document", vbInformation, "Action Cancelled"
Exit Sub
Else
'Check that the document specified in the file path is actually there
If (Dir(FilePath) = "") Then
MsgBox "Document Does Not Exist In The Specified Location", vbExclamation, "Action Cancelled"
Exit Sub
Else
'Opens document in Word
Call OpenWordDoc(FilePath)

End If
End If

End Sub

------------------------------------
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postscript to PDF with pdf-tools, pdf-writer, or other Sean Nakasone Ruby 1 04-14-2008 09:13 PM
PDF::Writer, create pdf and insert in other pdf file. Ricardo Pog Ruby 1 03-26-2008 08:24 PM
Re: how to open a file in some application using Tkinter i am usingTKINTER to create GUI application i want to know how to open a worddocument in open office or any other applicatio Fredrik Lundh Python 1 01-09-2008 10:40 AM
Open linked PDF-Files from a PDF-File Paul Kuebler ASP .Net 8 08-18-2003 04:42 PM
Re: Open linked PDF-Files from a PDF-File Carl Prothman [MVP] ASP .Net 4 08-12-2003 09:26 AM



Advertisments