P
pubdude2003 via AccessMonster.com
hey there, I've a small problem with a loop statement. I've populated a table
with all of the file names in a windows directory and I'm attempting to
rename the files in that directory with new ones (both names are set in a
form) but after renaming the first file it attempts to rename the same file
again causing the code to stop because it can't find the original filename
any longer. Why isn't it moving to the next record?
Any help would be appreciated.
Function renum()
Dim rst As DAO.Recordset
With Me.RecordsetClone
Do Until .EOF
Name Text3 As Text7
.MoveNext
Loop
End With
Set rst = Nothing
End Function
with all of the file names in a windows directory and I'm attempting to
rename the files in that directory with new ones (both names are set in a
form) but after renaming the first file it attempts to rename the same file
again causing the code to stop because it can't find the original filename
any longer. Why isn't it moving to the next record?
Any help would be appreciated.
Function renum()
Dim rst As DAO.Recordset
With Me.RecordsetClone
Do Until .EOF
Name Text3 As Text7
.MoveNext
Loop
End With
Set rst = Nothing
End Function