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?
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.

NalinkumarbalajiCommented:
Hi,

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.

https://support.microsoft.com/en-us/kb/180384

-SNKBalaji
0
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.

CRB
0
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.

/gustav
0

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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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.
0
NalinkumarbalajiCommented:
Hi,

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

https://technet.microsoft.com/en-us/library/cc753659.aspx

And also check by adding Trusted location in Access  2010

https://support.office.com/en-us/article/Add-remove-or-change-a-trusted-location-7ee1cdc2-483e-4cbb-bcb3-4e7c67147fb4

-SNKBalaji
0
Clive BeatonAccess DeveloperAuthor Commented:
Thank you all.
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
What was the solution/resolution ?
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.