Results 1 to 5 of 5

Thread: [Resolved] ADO to current database -- NEW PROBLEM

  1. #1

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Resolved [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.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: ADO to current database

    Quote 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.

  3. #3

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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:
    1. cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    2. "Data Source=H:\JOB\FinancialData2.mdb"

    nevermind, I got it

    VB Code:
    1. cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    2. "Data Source=" & application.currentproject.fullname
    Last edited by kfcSmitty; Jun 22nd, 2005 at 07:24 AM.

  4. #4

    Thread Starter
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    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.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: ADO to current database -- NEW PROBLEM

    Quote 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
  •  



Click Here to Expand Forum to Full Width