|
-
Jun 22nd, 2005, 07:11 AM
#1
[Resolved] ADO to current database -- NEW PROBLEM
Is it possible to link ADO to the MS Access 2002 database I'm using? I tried this before but every once and a while it would say I don't have permissions to write to the table.
I'm sure I have enough permissions, as I tried it on my laptop, but it just doesnt seem to want to work.
Anyone ever encounter this error?
*check out Post #4*
Last edited by kfcSmitty; Jun 22nd, 2005 at 07:59 AM.
-
Jun 22nd, 2005, 07:16 AM
#2
Re: ADO to current database
 Originally Posted by kfcSmitty
Is it possible to link ADO to the MS Access 2002 database I'm using? I tried this before but every once and a while it would say I don't have permissions to write to the table.
I'm sure I have enough permissions, as I tried it on my laptop, but it just doesnt seem to want to work.
Anyone ever encounter this error?
The only times that I can remember getting that error was when I was trying to open a database that was already open.
-
Jun 22nd, 2005, 07:18 AM
#3
Re: ADO to current database
okay, thanks! i hope thats what the problem is
also, how would I set the connection string to the current database? Currently I have
VB Code:
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=H:\JOB\FinancialData2.mdb"
nevermind, I got it 
VB Code:
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & application.currentproject.fullname
Last edited by kfcSmitty; Jun 22nd, 2005 at 07:24 AM.
-
Jun 22nd, 2005, 07:27 AM
#4
Re: ADO to current database -- NEW PROBLEM
Now when I try to edit my database it keeps comign up with I do not have exclusive access to the database at this time. And I may not be able to save...
*edit* its gone now, but I didn't do anything. Is there a timeout period for an access database or something?
Last edited by kfcSmitty; Jun 22nd, 2005 at 07:31 AM.
-
Jun 22nd, 2005, 07:40 AM
#5
Re: ADO to current database -- NEW PROBLEM
 Originally Posted by kfcSmitty
Now when I try to edit my database it keeps comign up with I do not have exclusive access to the database at this time. And I may not be able to save...
That, again, sounds like an attempt to open an open database. The exclusive rights thing I get alot because I will open the database using Access, then run code that tries to open it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|