need to access database from corel draw error 3112

Posted on 2013-10-30
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;"
objConnState = objConn.State
ars.Open "SELECT SkuCache.ImageID FROM OrderTable order by item;", objConn, adOpenKeyset, adLockOptimistic



Set ars = Nothing
Set objConn = Nothing
End Sub
Question by:eg252
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
  • 3
  • 2
LVL 74

Accepted Solution

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:


Author Comment

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

Author Comment

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

Author Closing Comment

ID: 39614101
wasnt the complete solution - but pointed me in the right direction.. I posted the answer that did work for me..
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...

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
The goal of the tutorial is to teach the user how to make his/her own presets while editing so it is easier to edit there photos. Create a preset you like and copy that setting then save it in to your presets folder.
Learn how to automatically add page numbers in your next InDesign project. This can be very helpful in multi-page books and magazines that you are designing. Make sure your Pages window visible.:  In the document you wish to add page numbers to. Act…

717 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