Results 1 to 5 of 5

Thread: Simply establishing a connection

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    3

    Unhappy Simply establishing a connection

    Hi

    I'm a high school student that is working on a project with a few friends. My task in the group is to include a database for game saves, and another database for values of attack, defense, (we're making a game) etc.

    For the past month I have been searching for a way to connect an ACCESS 2003 database to our VB6 project. I've been looking through all sorts of sites, and even read halfway through http://vb6.us/tutorials/introduction...query-language

    Anyways, can someone tell me how to establish a connection, or what provider to select in the data environment window. Thanks!!!

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Simply establishing a connection

    Welcome to VBForums

    For a start, forget that the Data Environment exists.. it is cumbersome and is based on old technology (as well as having a lack of people who can help you with it).

    Instead, go thru the ADO Tutorial which is linked in my signature, as this uses the "proper" method of working with databases from VB6. There is further useful info in our Database FAQs at the top of this forum (or via the link in my signature).

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    3

    Re: Simply establishing a connection

    I still don't understand it. Where do I start?

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Simply establishing a connection

    Have you followed the tutorial (and created the database/project/etc.)?

    If so, you should be able to see how to connect to the database, as well as how to read & write data to it.


    If you have any specific questions, we can help.. but I'm afraid your previous post doesn't give us enough information to know what the problem(s) are - so there isn't much we can do.

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    3

    Talking Re: Simply establishing a connection

    Sweet! I tried the tutorial before but just gave up on it. I switched some of the code and now it connects and obtains values from the database. Thanks a bunch!

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