Solved

Access 2007 db works differently on computers

Posted on 2012-03-30
15
393 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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 500 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

627 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