Mike, Copy the same form into each DataBase. Have the eep set a var to the DB name you want to open, return, connect and start the same form in the next DB.
YourCalling.cmd ------------------------ Set vDbName Text = ..defaultDB.. label NextDB con .vDbName edi using yourform yada yada if vDBName <> 'Quit' then goto NextDB endIf return DB.eep ----------- Set v vDbName = 'NextDatabaseName' closewindow return You might consider a choose command rather than a button... Ben Petersen On 4 Oct 2001, at 19:17, MJS wrote: > Hi all! > > I'm still converting a bunch of DOS apps to Windows. One problem...I have > several different databases that I use (lots of data, so I split it up into > several databases). In DOS, I can switch pretty easily by just using "CONNECT > dbname". In the Windows version, if I try to do that with a button, I get a > message that basically says I can't use "CONNECT" in an EEP. Using ODBC works, > but it is slow. Is there anyway to use "CONNECT" within a Windows form? > > TIA! > > Mike Sinclair > > >
