Help with updateing Hyperlinks

C

caj

Below is my code. I am trying to save files from one directory to another
directory and update the hyperlinks in the form. The saving part works. But
it only updates the first link in the form. How do I get it to update all the
hyperlinks for each file.


Private Sub SaveDBFiles_Click()

Dim strSQL As String
Dim strCurrFile As String
Dim strCurrFolder As String
Dim strNewFolder As String

strCurrFolder = "C:\Post\STAGING\"
strNewFolder = "C:\Post\ARCHIVE\"
strCurrFile = Dir(strCurrFolder & "*.*")

Do While Len(strCurrFile) > 0

Name strCurrFolder & strCurrFile As strNewFolder & strCurrFile
strCurrFile = Dir()
Me.PathFileName = strNewFolder

Loop


End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top