using multiple database in one program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raiza
    New Member
    • Jan 2008
    • 1

    using multiple database in one program

    hi! i'm presently creating a visual basic program which is suppose to be connected in multiple databases.

    i've already managed to connect my program to one database in access. however, when i tried connecting another access database to it, it doesn't work.

    i made two connections and two recordsets separately for the two database using two adodc but it doesn't work.

    is there anything else that i am suppose to add in my codes? is it possible to use multiple access databases in one vb program?

    thanks.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by raiza
    hi! i'm presently creating a visual basic program which is suppose to be connected in multiple databases.

    i've already managed to connect my program to one database in access. however, when i tried connecting another access database to it, it doesn't work.

    i made two connections and two recordsets separately for the two database using two adodc but it doesn't work.

    is there anything else that i am suppose to add in my codes? is it possible to use multiple access databases in one vb program?

    thanks.
    Please make sure you are posting in the correct forum next time.

    What happened when you tried to connect to the other database? Did you get an error? Do you have to be connected to both databases at the same time or is it possible to acheive your requirements by connecting to the databases one at a time?

    Comment

    • werks
      New Member
      • Dec 2007
      • 218

      #3
      Originally posted by raiza
      hi! i'm presently creating a visual basic program which is suppose to be connected in multiple databases.

      i've already managed to connect my program to one database in access. however, when i tried connecting another access database to it, it doesn't work.

      i made two connections and two recordsets separately for the two database using two adodc but it doesn't work.

      is there anything else that i am suppose to add in my codes? is it possible to use multiple access databases in one vb program?

      thanks.
      hi raiza it would be helpful if you could post the exact codes for connecting on your database..


      Better Than Yesterday ^^

      Comment

      • lotus18
        Contributor
        • Nov 2007
        • 865

        #4
        I think you are planning to create a distributed dbms.

        Comment

        • debasisdas
          Recognized Expert Expert
          • Dec 2006
          • 8119

          #5
          Its better to use ADODB .

          try to use two separate connetion object and its related other objects.

          Comment

          Working...