M
Mike P
I have my database split into a FrontEnd (FE) containing all the modules,
forms, queries, etc., and a BackEnd (BE) containing all the tables. The BE
is linked. I am trying to write some VB code that will automatically back up
the BE when the user is running the application. This is working in Access
2003 however, I am migrating to 2007 and when trying to backup the BE, I get
an error that the “file is in useâ€â€¦ which it is. This is a single user
system.
I am thinking I have to unlink the tables, backup the BE, then relink… but
have not figured out how to do this. So far the code I have is.
strTmpFileName = strBackUpDir & "\" & strFileName & ".accdb"
Application.CompactRepair strCurrentDB, strTmpFileName
It is failing on the Application.CompactRepair since the FE is connected to
the BE I am trying to backup (and compactRepair while I am at it).
Any ideas?
Thanks,
Mike P.
forms, queries, etc., and a BackEnd (BE) containing all the tables. The BE
is linked. I am trying to write some VB code that will automatically back up
the BE when the user is running the application. This is working in Access
2003 however, I am migrating to 2007 and when trying to backup the BE, I get
an error that the “file is in useâ€â€¦ which it is. This is a single user
system.
I am thinking I have to unlink the tables, backup the BE, then relink… but
have not figured out how to do this. So far the code I have is.
strTmpFileName = strBackUpDir & "\" & strFileName & ".accdb"
Application.CompactRepair strCurrentDB, strTmpFileName
It is failing on the Application.CompactRepair since the FE is connected to
the BE I am trying to backup (and compactRepair while I am at it).
Any ideas?
Thanks,
Mike P.