Results 1 to 10 of 10

Thread: Multiple Step OLE DB Problem, pls help, i know u can....

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91

    Question

    Ok people i need some serious help, I am having a problem with my access 2000 database and vb6 sp4. i can get to the database, but if the password isnt set, ne ideas? I need to password protect the database. second problem is the goddamn error i keep on getting:

    Error Number: -2147217887, description: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

    What does that mean? how do i fix it? thanks a lot ppl, i appreciate it.
    Mag-Net's Home
    Visual Studio 6-Enterprise - SP4
    ICQ: 35519773
    Have Fun

  2. #2
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Isle of Man
    Posts
    276
    i had that error once

    it can be caused by all manner of things, but in my case I seem to remember that I was trying to assign a value to an auto number column

    try doing a usenet search on http://www.dogpile.com for your error message - usually turns up loads of stuff for me

    to set the password for a database you need to join a workgroup using the workgroup administrator
    after that it's easy - just specify the username and password in your connection string, or if you're using DAO, open up a workspace before you open the database

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Is the database password protected right now? And you need to know how to connect with it?

    What code is giving you that error?

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91
    I get my error when trying to add a new record to the database.

    I looked on Dogpile and found no way of fixing it. How do i get around it?

    The password protect thing i am doing how it should be, in the connection string, and in the bit in access where u said, but it still doesnt connect properly, i get an error that it cant connect to database?

    Thanks
    Mag-Net's Home
    Visual Studio 6-Enterprise - SP4
    ICQ: 35519773
    Have Fun

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91

    Unhappy

    The code for the adding new records (or ammending others) is correct, it is just a bug in vb, is there a way around it?
    Mag-Net's Home
    Visual Studio 6-Enterprise - SP4
    ICQ: 35519773
    Have Fun

  6. #6
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    what does your connection string look like?

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91
    This is my connection string:

    "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\CustomerDB.mdb"

    I havent got the username or password set in this because it doesn't connect when i have them set. The following is the connection string that I tried when using a username and password:

    "Provider=Microsoft.Jet.OLEDB.4.0; Password=Password; Data Source=" & App.Path & "\CustomerDB.mdb; Mode=Write|Share Deny None; Persist Security Info=True; Jet OLEDBatabase"


    Is this wrong? It is what the string builder built for me, then i used it and didnt use the data control (i dont like using that thing)

    thanks
    Mag-Net's Home
    Visual Studio 6-Enterprise - SP4
    ICQ: 35519773
    Have Fun

  8. #8
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    I responded to your other post about Password protecting

    http://forums.vb-world.net/showthrea...threadid=23390

  9. #9
    Addicted Member
    Join Date
    Jun 2000
    Posts
    156
    I m trying to use this code to connect to a DB on VB5
    and it aint working ,do you know why ?

    Set GetRecordSet = Nothing

    Set conn = New ADODB.Connection
    Set rs = New ADODB.Recordset

    THIS :

    sConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\Phones.mdb"

    OR THIS:

    sConn = "DNS=Phones;DATABASE=phones"

    OR THIS:

    sConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data
    Source=Phones.mdb;Jet OLEDBatabase ;"


    conn.Open sConn


    NONE OF THEM WORKS !!!!


    HELP !HELP !HELP !HELP !HELP !HELP !HELP !
    The MORE I get to know,
    I realize that I know NOTHING !

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91
    i like ur tag, that is really very true (tag = the thing at the bottom).

    what i would do is just insert a ADODB control (ActiveX Data Objects Control).....i cant remember exactly what it is called, and then goto custom and get it to build the string itself, you can then test the connection then use the desired connection string. Hope it helps
    Mag-Net's Home
    Visual Studio 6-Enterprise - SP4
    ICQ: 35519773
    Have Fun

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