G
Guest
Good Morning,
I entered code into the double click event of a text box that would open a
PDF file that had a corresponding name to the value in the text box. (ie you
double click on a text box with the number 7145 as its value and it opens a
PDF named 7145 in a folder)
The code worked fine until I attempted to open the document over the network.
So when the adress read, "C:\Scanned Docs\" &
[tblBOTracking_TransactionNumber] & ".pdf"
The file opened with no problem.
However, when I changed the addres to:
Application.FollowHyperlink "\\960wmdrp28\scanned docs\" &
[tblBOTracking_TransactionNumber] & ".pdf"
Acrobat opens for a split second and then immediately closes. I don't see
the document in the Acrobat viewer, but the bar at the top of the Acrobat
viewer is display the correct file name. (it is displaying 7145.pdf)
It seems as if it is finding the file correctly, but is closing for some
reason...but only when it is going across the network and not on the PC
itself. I dont know if it is the code or some setting on the shared folder.
Below is an example of the exact code for the event. Is there something
missing that is causing this to happen?
Private Sub tblBOTracking_TransactionNumber_DblClick(Cancel As Integer)
On Error GoTo Err_tblBOTracking_TransactionNumber_DblClick
Application.FollowHyperlink "\\960wmdrp28\scanned docs\" &
[tblBOTracking_TransactionNumber] & ".pdf"
Exit_tblBOTracking_TransactionNumber_DblClick:
Exit Sub
Err_tblBOTracking_TransactionNumber_DblClick:
MsgBox Err.Description
Resume Exit_tblBOTracking_TransactionNumber_DblClick
End Sub
I did physically map the network drive to my pc and when I manually open the
file, it opens just fine. The problem seems limited to when i attempt to
execute the code through access.
I would appreciate any help or suggestions.
TIA
Antonio
I entered code into the double click event of a text box that would open a
PDF file that had a corresponding name to the value in the text box. (ie you
double click on a text box with the number 7145 as its value and it opens a
PDF named 7145 in a folder)
The code worked fine until I attempted to open the document over the network.
So when the adress read, "C:\Scanned Docs\" &
[tblBOTracking_TransactionNumber] & ".pdf"
The file opened with no problem.
However, when I changed the addres to:
Application.FollowHyperlink "\\960wmdrp28\scanned docs\" &
[tblBOTracking_TransactionNumber] & ".pdf"
Acrobat opens for a split second and then immediately closes. I don't see
the document in the Acrobat viewer, but the bar at the top of the Acrobat
viewer is display the correct file name. (it is displaying 7145.pdf)
It seems as if it is finding the file correctly, but is closing for some
reason...but only when it is going across the network and not on the PC
itself. I dont know if it is the code or some setting on the shared folder.
Below is an example of the exact code for the event. Is there something
missing that is causing this to happen?
Private Sub tblBOTracking_TransactionNumber_DblClick(Cancel As Integer)
On Error GoTo Err_tblBOTracking_TransactionNumber_DblClick
Application.FollowHyperlink "\\960wmdrp28\scanned docs\" &
[tblBOTracking_TransactionNumber] & ".pdf"
Exit_tblBOTracking_TransactionNumber_DblClick:
Exit Sub
Err_tblBOTracking_TransactionNumber_DblClick:
MsgBox Err.Description
Resume Exit_tblBOTracking_TransactionNumber_DblClick
End Sub
I did physically map the network drive to my pc and when I manually open the
file, it opens just fine. The problem seems limited to when i attempt to
execute the code through access.
I would appreciate any help or suggestions.
TIA
Antonio