?
Solved

Error with ADO Query - Assistance Needed

Posted on 2007-12-06
4
Medium Priority
?
167 Views
Last Modified: 2010-04-21
Hi experts,

I really need your help here.

My application is connected by ADOConnection via (DSN) to a Microsoft DB .MDB.

When the applicaton starts first time and I do a Query it works fine BUT

When I try to do a second Query I am getting the following error:

The Microsoft Jet database engine cannot open the file ''. It is already opened exclusively by another user, or you need permission to view its data.

Please help it's urgent!

Thanks

ST3VO
0
Comment
Question by:ST3VO
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Ashish Patel
ID: 20419559
So, try closeing the connection and record set and re-open
0
 

Author Comment

by:ST3VO
ID: 20420561
I'm Testing!!! Will get back to you :o)
0
 
LVL 14

Accepted Solution

by:
Pierre Cornelius earned 2000 total points
ID: 20425993
What is your connection string?

Try setting the ADOConnection1.Mode property to cmShareDenyNone
0
 

Author Closing Comment

by:ST3VO
ID: 31413132
Yep...That did the trick! Thanks a million :o)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month16 days, 13 hours left to enroll

864 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