Solved

Error with ADO Query - Assistance Needed

Posted on 2007-12-06
4
158 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
[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
  • 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 500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

697 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