ADO .Open problem (posted on general news too) 
Author Message
 ADO .Open problem (posted on general news too)

I  am trying to open a database using ADO using the
following .Connectionstring:

"Provider=Microsoft.Jet.OLEDB.4.0;Data
source=d:\user\jack\temp\dbTest.mdb"

The database is one that I have designed and resides on my
local machine.

The call to use the ADO object is made from a VBA module
within the database itself (i.e. the database is already
open when the connection is being made)

I get the following error message:

"The database has been placed in a state by user 'Admin'
on machine 'COMP195' that prevents it from being opened or
locked."

How do I either modify the permissions of the database, or
the connection type, to avoid this issue?

Thanks

Jack.



Sun, 18 Dec 2005 14:10:42 GMT  
 ADO .Open problem (posted on general news too)
Hi Jack
The problem is because you have the database open, I
suggest that you close the database and try again, or you
could try opening the database in "shared" mode. Check
the default opening mode
under "Tools";"Options";"Advanced" and select "Shared"

HTH
Paul

Quote:
>-----Original Message-----
>I  am trying to open a database using ADO using the
>following .Connectionstring:

>"Provider=Microsoft.Jet.OLEDB.4.0;Data
>source=d:\user\jack\temp\dbTest.mdb"

>The database is one that I have designed and resides on
my
>local machine.

>The call to use the ADO object is made from a VBA module
>within the database itself (i.e. the database is already
>open when the connection is being made)

>I get the following error message:

>"The database has been placed in a state by user 'Admin'
>on machine 'COMP195' that prevents it from being opened
or
>locked."

>How do I either modify the permissions of the database,
or
>the connection type, to avoid this issue?

>Thanks

>Jack.

>.



Sun, 18 Dec 2005 20:12:49 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ADO, SQL Server, VB problem posted to the microsoft.public.data.ado group as well

2. General News Question

3. where is the general news group for office XP

4. NEWS * NEWS * NEWS

5. NEWS * NEWS * NEWS

6. NEWS * NEWS * NEWS

7. posting to news groups

8. !Posting to news from VB!

9. Does have, know of an example of posting a file to a news group

10. Does anyone have, know of an example of posting a file to a news group

11. Posting Usenet News

12. News Posting

 

 
Powered by phpBB® Forum Software