So, my code does not loop through records - it backs up just the first file...
Here is my code
- - - - - - - - - - - - - - - - - - - -
Private Sub backup_Click()
Dim rs As Recordset
Dim strSql As String
strSql = "SELECT * FROM files;"
Set rs = DBEngine(0)(0).OpenRecordset(strSql)
rs.MoveFirst
Do While Not rs.EOF
Call BackUpAndCompactFE
rs.MoveNext
Loop
MsgBox "End of backup process!"
rs.Close
Set rs = Nothing
End Sub
Here is my code
- - - - - - - - - - - - - - - - - - - -
Private Sub backup_Click()
Dim rs As Recordset
Dim strSql As String
strSql = "SELECT * FROM files;"
Set rs = DBEngine(0)(0).OpenRecordset(strSql)
rs.MoveFirst
Do While Not rs.EOF
Call BackUpAndCompactFE
rs.MoveNext
Loop
MsgBox "End of backup process!"
rs.Close
Set rs = Nothing
End Sub