April 24, 2024, 12:54:36 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Open multiple databases of different type

Started by Rock Ridge Farm (Larry), May 30, 2008, 08:06:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rock Ridge Farm (Larry)

I need to open more than one database.
One is a regular mdb and the other is a txt file opened as a database.
The program opens the mdb database and processes
Then at a point I need to open the txt database
Once done with it I close it.
Now the original db is lost and program crashes.
I use different pointers to open both.
Can this be done and what could I be doing wrong???

LarryMc

LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

JoaoAfonso

There is another way to round this problem I once had, but I use a routine that needs to check something at other DB and closes it right after, and all work well. Probably you are mixing something in your code, or has something to do with txt as database (I say this because I use 2 mdb and all work great). I use a different pointer and the same routines to insert, delete, etc, just changing the pointer after opening the DB.
Don't know if this helps...
JoÃÆ'ƒÂÃ,£o Afonso
Viriato
-----------------
Iberia MUD
www.iberiamud.com
iberiamud.com:5900