?
Solved

vb6-ms access returns "OPERATION MUST USE AN UPDATEABLE QUERY" errror

Posted on 2008-06-24
8
Medium Priority
?
802 Views
Last Modified: 2013-12-25
Dim ConStr As String
Set Con = New ADODB.Connection
ConStr = "Provider=Microsoft.jet.OLEDB.4.0; " + " Data source=\\dbsrv\HR\db\db1.mdb;"

Set RsEmp = New ADODB.Recordset

 RsEmp.LockType = adLockOptimistic
 RsEmp.CursorLocation = adUseClient
 RsEmp.CursorType = adOpenKeyset
 RsEmp.Open "select * from tb1", Con

the database is stored in  a shared directory HR from the computer DBSRV! the update query only works when run locally, but produces an error message "operation must use an updateable  query" if run from anyother computer in workgroup.
both administrators and  users groups were assigned  full control access to the HR directory however i am still getting  the same error message! so can anybody help fix it?

thanks


0
Comment
Question by:winklez
[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
  • 4
  • 4
8 Comments
 
LVL 23

Expert Comment

by:irudyk
ID: 21857722
Try adding
Con.Mode = 3      '3 = adModeReadWrite
after
Set Con = New ADODB.Connection

e.g.
Dim ConStr As String
Set Con = New ADODB.Connection
Con.Mode = 3      '3 = adModeReadWrite
0
 

Author Comment

by:winklez
ID: 21863217
setting the Con.Mode to 3  could not fix it!
0
 
LVL 23

Expert Comment

by:irudyk
ID: 21864598
You mentioned "both administrators and  users groups were assigned full control access to the HR directory".  Just curious, does the 'db' folder inherits its permissions from the parent (or 'HR') folder?  If it does, then try giving full rights to the computer object itself (i.e. the computer name that is having the issue) to see if that does anything.
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

Author Comment

by:winklez
ID: 21874601
yeah it does, the DB inherits permissions from HR!  so how do i give the full rights to the computer objects? is it similar to assign rights to users? i.e through  HR directory properties security tab, add users,? i am working in work-group environment, how do u locate the computer object?  thanks
0
 
LVL 23

Expert Comment

by:irudyk
ID: 21875696
When you click the Add button the dialog box that pops up should have an Object Types.... button.  When you click on that button another dialog box appears where you should be able to check offf Computers.  From there you should be able to enter/search for the computer name.
0
 

Author Comment

by:winklez
ID: 21882007
did try but the same error message persists!
0
 
LVL 23

Accepted Solution

by:
irudyk earned 210 total points
ID: 21882640
Hmmm...have you tried to open the mdb file from this other computer (i.e. using Access) to see if it can be opened directly?  If you can do that then it is not likely a network security rights issue.  If you can open the file, can you get intot the tb1 table and make changes to the data.  If you can't then it would appear that it is a user level security issue on the table within the mdb file.
0
 

Author Comment

by:winklez
ID: 22008277
never give up, actually, as stated above by irudyk, it was a network security issue.
1> share permissions were set set to change
2> from the host, the user guest was enabled,  added the security tab of HR folder and guaranteed the 'write" permission

 irudyk, thank u very much
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 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