Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Access 2007 db works differently on computers

Posted on 2012-03-30
15
Medium Priority
?
402 Views
Last Modified: 2012-04-01
I created an Access 2007 database on my computer.  When I send it to my client (the also have Access 2007) they get an error that I do not get.  It works fine on my computer. Help!

They get a Cannot delete from specified tables error at this line of code:
DoCmd.SetWarnings False
DoCmd.RunSQL ("Delete * from tblSecurityHospitalAccess")

I created a query instead and they get an Operation must use an updateable query error message:
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryDeleteSecurityHospitalAccess", acViewNormal
0
Comment
Question by:Sasha42
  • 6
  • 4
  • 2
  • +3
15 Comments
 
LVL 61

Expert Comment

by:mbizup
ID: 37787583
Is this a spilt (front end/back end) database?

My first thought would be that you need to refresh or correct links to tables in the Back End for this user.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 37787592
Also make sure that the user has full permissions (read/write/execute/delete) privileges on the folder that the database/ back end is stored in.
0
 
LVL 20

Expert Comment

by:clarkscott
ID: 37787619
Remove the setwarnings false and see what it tells them....

Scott C
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 61

Expert Comment

by:mbizup
ID: 37787638
Another thought... If tblSecurityHospitalAccess is a table that you have recently added while developing this database at your own location, make sure that you have also added it to the back-end at the client's location
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37787824
1. Also, consider doing the delete in a different manner...

CurrentDB.Execute "Delete * from tblSecurityHospitalAccess"


2. Just curious.. can the user open tblSecurityHospitalAccess directly and delete records...?
0
 

Author Comment

by:Sasha42
ID: 37787869
That database is not split.  I have created a new database and imported all the objects.  They still get the error. Docmd.setwarnings has no bearing on it.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 37787882
Have you verified the folder permissions and that tblSecurityHospitalAccess is indeed there and usable (not corrupted for instance)?

If this is a shared database, you should consider splitting it after resolving this (helps prevent corruption, and a multitude of other problems).

Is this problem consistent for all users, or does it vary?
0
 

Author Comment

by:Sasha42
ID: 37788058
Yes, I will split it out after it is tested.  I sent it to another client on a different server and they get the same error message too.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 37788105
Again, verify that the table is there and not corrupted...

Make a backup and compact/repair the database.
0
 

Author Comment

by:Sasha42
ID: 37788219
I have compacted and repaired, created a blank database and imported all the objects, completely rebuilt the problem table.  The properites show under attributes that it is not read only. Could it have something to do with their security settings?  Thanks so much for your help.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 37788241
Possibly - your users should have read,write,execute and delete privileges on the folder your database resides in.
0
 

Author Comment

by:Sasha42
ID: 37788254
The database is not on network.  I send a zipped copy of the database to the client for testing.
0
 
LVL 77

Expert Comment

by:peter57r
ID: 37788260
Users must have full permissions on the FOLDER containing the database, otherwise it becomes read only.

Can you users save say, an Excel file into the database folder , and also delete it from that folder?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37788497
0
 
LVL 11

Accepted Solution

by:
datAdrenaline earned 2000 total points
ID: 37788965
>> I send a zipped copy of the database to the client for testing. <<

Please ensure that your client is EXTRACTING the database file from the Zip folder you are sending them!   If the client opens the database within the Zip folder, it is Read-Only and you will get errors like you are seeing.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question