Results 1 to 5 of 5

Thread: ADO problem and DAO question

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Posts
    48

    Post

    Can you not open a password protected Acess 2000 database with ADO? I choose Jet 4.0 as the provider, but whenever I test the connection it says workgroup file is missing or the database is locked exclusively. I put the password in but to no avail. I end up using oledb, but it takes forever to produce results with ADO. Why do I keep having trouble out of ADO. It seems as though DAO is faster and simpler, but everywhere I read says ADO is the best thing to ever happen. What is the deal?

    Also, how come using the data control (DAO) fills a combo box fast but if you fill it in code it takes a while (Using a loop). Is there a faster way around this?


  2. #2
    Guest

    Post

    I think u should try RDO using ODBC
    ------
    1st - u must create Data Source Name (DSN)-Any name
    2nd - select the MsAccess path
    3rd - U can ignore the desciption, it's up to U
    -------
    4th - run your VB Application
    5th - Goto project|Reference and add Microsoft Remote Data Object
    6th - Add Component - Microsoft remote data control
    7th - you can specify all the property mainly at Custom

    I you cannot get it please ask for sample (takes time a bit)


    ------------------
    Khamal

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    As to why your manual filling of a combo box seems slow, you'll need to post the code so people can possibly help you improve it.

    ------------------
    Marty

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Go here to see how to open a password protected database using ADO:
    http://vbcode.webhostme.com/en/code.asp?id=86

    Smalig: Could you fix this code? you need a CRLF after your 'set cn = new connection statement' -- Thanks

  5. #5
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Oh yes, DAO is faster than ADO for Jet Databases. All future improvements / upgrades will be to ADO. M$ is phasing out RDO and DAO, so start porting your code to ADO if possible.

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