Results 1 to 5 of 5

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

  1. #1
    Frenzied Member kfcSmitty's Avatar
    Join Date
    May 05
    Location
    Kingston, Ontario
    Posts
    1,789

    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
    Super Moderator Hack's Avatar
    Join Date
    Aug 01
    Location
    Searching for mendhak
    Posts
    58,283

    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.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

  3. #3
    Frenzied Member kfcSmitty's Avatar
    Join Date
    May 05
    Location
    Kingston, Ontario
    Posts
    1,789

    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
    Frenzied Member kfcSmitty's Avatar
    Join Date
    May 05
    Location
    Kingston, Ontario
    Posts
    1,789

    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
    Super Moderator Hack's Avatar
    Join Date
    Aug 01
    Location
    Searching for mendhak
    Posts
    58,283

    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.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •