MS Access Error 70 Permission denied

I have a function in my app to backup the backend database.  The relevant code is:

   BackupFile = ahtCommonFileOpenSave(InitialDir:="Computer", FileName:="CelaData.dat", DialogTitle:="Backup", OpenFile:=False)
   If BackupFile > "" Then
      SetAttr BackupFile, vbNormal
      Kill BackupFile
   End If
   ... and on to the rest of the code to do the backup ...

The code has worked well for at least 3 years.  Now, when I run it, it gives: MS Access Error 70 Permission denied

Zan anyone help.

Thanks in advance.
Clive BeatonAccess DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Please let me know the below details.

1) Where do you have the App running(Client or Server)
2) What version you are using (OS version, Access Version)
3) Did you change anything in your environment recently?

Have you looked into the resolution given in the below KB article.

Clive BeatonAccess DeveloperAuthor Commented:
Thanks for your response.

1) The application and backend database are on my PC in the same folder.
2) Windows 7, Access 10.
3) No changes to my knowledge.

Yes I have looked at the article and I don't think mit applies.

Gustav BrockCIOCommented:
It seems like for some reasons you have not (anymore) been granted the necessary rights to either the file or the folder that holds it.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
If this is a single-user app, then you might also have a corrupt user profile. Try logging in as a different user and see if the code works. If so, then you'd have to recreate that user profile.

Might be with the access rights. Can you check whether do you have the owner rights for the respective folder.

And also check by adding Trusted location in Access  2010

Clive BeatonAccess DeveloperAuthor Commented:
Thank you all.
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
What was the solution/resolution ?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.