Click to See Complete Forum and Search --> : 2 database problems
Leeper77
Jan 18th, 2000, 10:22 AM
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
JHausmann
Jan 18th, 2000, 10:26 AM
You can open multiple databases in your program.
Leeper77
Jan 18th, 2000, 10:27 AM
how?
HarryW
Jan 18th, 2000, 04:51 PM
If you've got 3 databases, you can use 3 data controls.
Leeper77
Jan 18th, 2000, 07:35 PM
so there is no way except for putting 3 data conntrols in there to access those databases as one
MartinLiss
Jan 19th, 2000, 12:00 AM
Here is an example of opening two databases using DAO '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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.