Results 1 to 6 of 6

Thread: 2 database problems

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Rhinelander, WI USA
    Posts
    59

    Post

    ok here is my problem. I have 2 databases and I have a form that is going to be used for personal inventory file. they will select from one or both databases and put it into a third database how about do i do this? Any Suggestions?

    Thanks

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    You can open multiple databases in your program.

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Rhinelander, WI USA
    Posts
    59

    Post

    how?

  4. #4
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827

    Post

    If you've got 3 databases, you can use 3 data controls.

  5. #5

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Rhinelander, WI USA
    Posts
    59

    Post

    so there is no way except for putting 3 data conntrols in there to access those databases as one

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

    Post

    Here is an example of opening two databases using DAO
    Code:
        'Open the databases
        gsRWTSPath = App.Path + "\data\rwts.mdb"
        gsRWTUPath = App.Path + "\data\rwtu.mdb"
        Set gdbRWTS = Workspaces(0).OpenDatabase(gsRWTSPath)
        Set gdbRWTU = Workspaces(0).OpenDatabase(gsRWTUPath)
    Both gdbRWTS and gdbRWTU are dimensioned as Public Database.


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

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