Solved

need to access database from corel draw error 3112

Posted on 2013-10-30
5
397 Views
Last Modified: 2013-10-31
This is the code. It connects fine to the database - but when i try to open the table I get Error 3112. How can I give myself "permission"?

Dim objConn As New ADODB.Connection
Dim ars As New ADODB.Recordset
objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\er\database2.mdb;"
objConn.Open
objConnState = objConn.State
ars.Open "SELECT SkuCache.ImageID FROM OrderTable order by item;", objConn, adOpenKeyset, adLockOptimistic

....

ars.Close
objConn.Close

Set ars = Nothing
Set objConn = Nothing
End Sub
Untitled.jpg
0
Comment
Question by:eg252
  • 3
  • 2
5 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 39613988
Not sure, but as a guess, I would say you need a User name and password that will allow you read access to the data, (So please contact the person in charge of this data, or other users who can connect to this data) ...this UN and PW will be coded into your connection string something roughly like this:

objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\er\database2.mdb;" & UserID:="YourUserID", Password:="YourPassword"

See here for more info:
http://support.microsoft.com/kb/191754

JeffCoachman
0
 
LVL 1

Author Comment

by:eg252
ID: 39614067
the message now is "the workgroup information is missing or used exclusively by another user.."

I made a copy of the system.mdw and put that in and got the same message

I can open the database with access with a password.. and there is no security or locks..

I made a brand new database with one table
0
 
LVL 1

Author Comment

by:eg252
ID: 39614090
I figured it out! thank you for your help

stackoverflow.com/questions/9361259/ms-access-records-cannot-be-read-no-read-permission-on-table
0
 
LVL 1

Author Closing Comment

by:eg252
ID: 39614101
wasnt the complete solution - but pointed me in the right direction.. I posted the answer that did work for me..
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 39614190
<wasnt the complete solution - but pointed me in the right direction.>
...that was the point, ...just to get you going...
;-)

Glad I could help...
;-)
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

In a previous article here at Experts Exchange (http://www.experts-exchange.com/articles/18414/Create-a-PDF-file-with-Contact-Sheets-montage-of-thumbnails-for-all-JPG-files-in-a-folder-and-each-of-its-subfolders-using-an-automated-batch-method.html)…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
The goal of the tutorial is to teach the user how to add a water mark to there photo. Once you have a photo you like you have to go into the water mark setting and add a water mark to the image. You can either choose a text watermark or an image…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

821 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