This did the trick for me, but you showed me the right way:
Dim Db As Database, Rs As Recordset, Sql
Set Db =
DBEngine.Workspaces(0).OpenDatabase("C:\ProgramFiles\ReCaLc\Backup\InternePostBackend.mdb", False, False)
Set Rs = Db.OpenRecordset("Agenda")
'First emty the backup database
Sql = "Delete * from Agenda IN
'C:\ProgramFiles\ReCaLc\Backup\InternePostBackend.mdb'"
DoCmd.RunSQL Sql
'Then fill it with the new data
Sql = "INSERT INTO Agenda IN 'C:\Program
Files\ReCaLc\Backup\InternePostBackend.mdb' SELECT * FROM Agenda"
DoCmd.RunSQL Sql
Rs.Close
Db.Close
This way I can create backups although other people are connected to my
backend database.