Sam Summers
Registered User.
- Local time
- Today, 20:10
- Joined
- Sep 17, 2001
- Messages
- 939
Hi Guys,
Been trying this one all day. I've tried playing with a few things from the forum and i'm nearly there. I just need a wee bit of expert help.
I have a form that displays a persons details and on it i have a command button, and all i want to do is to print a pdf file (or maybe jpg files) that are in a certain folder on a network.
To do this i must reference the employees name folder and then there name file.
This is what i have got so far:
Dim I As String
Dim S As String
Me.First_Name.SetFocus
I = Me.First_Name.Text
Me.Surname.SetFocus
S = Me.Surname.Text
Application.FollowHyperlink "F:\Personnel Certs\( & ""&)\( & "" & ).pdf"
SendKeys "%(FP)"
SendKeys "~", True
***************************************************
All is good until the Application line where i am trying to join the two text strings from the First_Name and Surname Textboxes.
The values for I and S are working.
The path to the folder is: G:\Personnel Certs\"persons name"\"persons name".pdf
The other method i could and may use is the command dialog which will give the user the choice of file to print but if i use this i want it to access the persons name folder anyway.
Many thanks in advance
Been trying this one all day. I've tried playing with a few things from the forum and i'm nearly there. I just need a wee bit of expert help.
I have a form that displays a persons details and on it i have a command button, and all i want to do is to print a pdf file (or maybe jpg files) that are in a certain folder on a network.
To do this i must reference the employees name folder and then there name file.
This is what i have got so far:
Dim I As String
Dim S As String
Me.First_Name.SetFocus
I = Me.First_Name.Text
Me.Surname.SetFocus
S = Me.Surname.Text
Application.FollowHyperlink "F:\Personnel Certs\( & ""&
SendKeys "%(FP)"
SendKeys "~", True
***************************************************
All is good until the Application line where i am trying to join the two text strings from the First_Name and Surname Textboxes.
The values for I and S are working.
The path to the folder is: G:\Personnel Certs\"persons name"\"persons name".pdf
The other method i could and may use is the command dialog which will give the user the choice of file to print but if i use this i want it to access the persons name folder anyway.
Many thanks in advance