S
sue gray
I copied this code from this site. It looked like it would work for me. I
am trying to scan documents into a folder and give the document a name
Contract*.pdf With their client id after contract.
However I keep getting an error 490. I know the problem is in the
strfilespec line, but I can't fiqure it out. I'm just learning to code. If
I leave off the & strfilespec on the last line it takes me to the correct
directory. Thanks for any help.
Private Sub Command126_Click()
Dim strFilespec As String
Const CONTRACTS_FOLDER = "\\server\data\mgt\"
strFilespec = "Contract_" & Format(Me.clientid, "000000") & ".pdf"
Application.FollowHyperlink CONTRACTS_FOLDER & strFilespec
End Sub
am trying to scan documents into a folder and give the document a name
Contract*.pdf With their client id after contract.
However I keep getting an error 490. I know the problem is in the
strfilespec line, but I can't fiqure it out. I'm just learning to code. If
I leave off the & strfilespec on the last line it takes me to the correct
directory. Thanks for any help.
Private Sub Command126_Click()
Dim strFilespec As String
Const CONTRACTS_FOLDER = "\\server\data\mgt\"
strFilespec = "Contract_" & Format(Me.clientid, "000000") & ".pdf"
Application.FollowHyperlink CONTRACTS_FOLDER & strFilespec
End Sub