Results 1 to 7 of 7

Thread: [RESOLVED] Connecting VB5 to MDB's later than 1997

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    8

    Resolved [RESOLVED] Connecting VB5 to MDB's later than 1997

    Setting References to "Microsoft DAO Object Library" and similar allow me to connect to Access Databases from 1997 Office very well.

    However, they do not seem to connect to latter versions of Access.

    Is there another reference or work around to this problem?

    I am old programer, and have VB5 under my belt. Some of the latter versions of VB leave me wondering what it is all about.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Connecting VB5 to MDB's later than 1997

    you can use ADO (microsoft activex data objects), add a reference to the whatever version you have installed, or download the latest version (2.8 i think), search under MDAC, you can find tutorial for connection in database forum
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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

    Re: Connecting VB5 to MDB's later than 1997

    Welcome to the forums.

    What, specific, versions of Access are you interested in connecting to?

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    8

    Re: Connecting VB5 to MDB's later than 1997

    Quote Originally Posted by Hack
    Welcome to the forums.

    What, specific, versions of Access are you interested in connecting to?
    The latter version of Access that I have provides tools to conver to 2000 and 2002 versions in addition to my 1997 version. I would like to be able to connect up up to either of these latter versions.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    8

    Re: Connecting VB5 to MDB's later than 1997

    Quote Originally Posted by westconn1
    you can use ADO (microsoft activex data objects), add a reference to the whatever version you have installed, or download the latest version (2.8 i think), search under MDAC, you can find tutorial for connection in database forum
    Thank you for your prompt response.

    Being new to this sort of thing, could you direct me to the web site where i might download 2.8 and the location of the forum where i might find the tutorial?

    Sorry to be such a dummy!

  6. #6
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Connecting VB5 to MDB's later than 1997

    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  7. #7

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    8

    Re: Connecting VB5 to MDB's later than 1997


    GOT IT !!!!!

    Thanks very much

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