M
mikesjLFG
I am using an API so the user can select a file from their computer,
it will then copy the file over to the network so that it will be
accessible from any machine that has permission to the file. (The new
filename should be the uniqueID with proper extension) There might be
a much simpler way to do this, but I wasn't aware of it so I am trying
this way and getting the error.
Private Sub Command25_Click()
Dim strFilter As String
Dim strInputFileName As String
Dim strFileCopyFrom As String
Dim strFileCopyTo As String
strFilter = ahtAddFilterItem(strFilter, "All Files (*.*)", "*.*")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select Resume to upload...", _
Flags:=ahtOFN_HIDEREADONLY)
FileCopyFrom = """" & strInputFileName & """"
FileCopyTo = """" & "\\server\share\" & ID.Value &
Right(strInputFileName, 4) & """"
FileCopy FileCopyFrom, FileCopyTo
it will then copy the file over to the network so that it will be
accessible from any machine that has permission to the file. (The new
filename should be the uniqueID with proper extension) There might be
a much simpler way to do this, but I wasn't aware of it so I am trying
this way and getting the error.
Private Sub Command25_Click()
Dim strFilter As String
Dim strInputFileName As String
Dim strFileCopyFrom As String
Dim strFileCopyTo As String
strFilter = ahtAddFilterItem(strFilter, "All Files (*.*)", "*.*")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select Resume to upload...", _
Flags:=ahtOFN_HIDEREADONLY)
FileCopyFrom = """" & strInputFileName & """"
FileCopyTo = """" & "\\server\share\" & ID.Value &
Right(strInputFileName, 4) & """"
FileCopy FileCopyFrom, FileCopyTo