C
Chez
I have PDF files saved on our server that relate to each record in my
database. I'm trying to create a command button that will create a path to
these files and do one of two things.
1. Create the path and open the PDF file in Acrobat Reader.
OR
2. Create the path and display a particular PDF file within a Form.
I'd prefer to do option #2. I can currently do option #2 with an image
using the following code below.
Dim strImagePath As String
Dim strMDBPath As String
Dim intSlashLoc As String
On Error Resume Next
strMDBPath = CurrentProject.FullName
intSlashLoc = InStrRev(strMDBPath, "\", Len(strMDBPath))
strImagePath = Left(strMDBPath, intSlashLoc) & _
Me.txtImageName
Me.imageframe.Picture = strImagePath
PLEASE HELP
database. I'm trying to create a command button that will create a path to
these files and do one of two things.
1. Create the path and open the PDF file in Acrobat Reader.
OR
2. Create the path and display a particular PDF file within a Form.
I'd prefer to do option #2. I can currently do option #2 with an image
using the following code below.
Dim strImagePath As String
Dim strMDBPath As String
Dim intSlashLoc As String
On Error Resume Next
strMDBPath = CurrentProject.FullName
intSlashLoc = InStrRev(strMDBPath, "\", Len(strMDBPath))
strImagePath = Left(strMDBPath, intSlashLoc) & _
Me.txtImageName
Me.imageframe.Picture = strImagePath
PLEASE HELP