Hi,
I had in access 2003 the following macro in the autoexec module:
Function copy database()
Dim fso As Object
Set fso = CreateObject("Scripting.FilesystemObject")
Application.Echo True, _
"Copy of the database is made."
fso.copyfile Application.CurrentDb.NAME, _
Application.CurrentDb.NAME & "bak", True
Application.Echo True, ""
End Function
The purpose is to make a copy of the current database when opening access. It worked in access 2003 but it doesn't work in access 2007.
Why?
Any suggestion please?
Thanks
Daniel
I had in access 2003 the following macro in the autoexec module:
Function copy database()
Dim fso As Object
Set fso = CreateObject("Scripting.FilesystemObject")
Application.Echo True, _
"Copy of the database is made."
fso.copyfile Application.CurrentDb.NAME, _
Application.CurrentDb.NAME & "bak", True
Application.Echo True, ""
End Function
The purpose is to make a copy of the current database when opening access. It worked in access 2003 but it doesn't work in access 2007.
Why?
Any suggestion please?
Thanks
Daniel