Thread View: comp.lang.pascal.delphi.databases
1 messages
1 total messages
Started by Ian
Thu, 30 Sep 1999 00:00
How can I choose at run-time what MSAccess .MDB file to read from?
Author: Ian
Date: Thu, 30 Sep 1999 00:00
Date: Thu, 30 Sep 1999 00:00
20 lines
1467 bytes
1467 bytes
We're trying to set up a TDatabase in Delphi 5 to allow us to read
MSAccess tables from any .MDB file chosen at run time.
We've managed to get data to appear in a TDBGrid using an alias set up
in Database Desktop. The params I get for that alias, using
Session.GetAliasParams are:
DATABASE NAME=K:\dev\32\access\grdc97.mdb
USER NAME=
OPEN MODE=READ/WRITE
LANGDRIVER=
SYSTEM DATABASE=
When I put these parameters into the TDatabase and try to connect I get
the error message "Invalid configuration parameter". I get this even if
I remove the parameters other than DATABASE NAME, remove the space
between DATABASE and NAME, replace the space with underscore, or make
some other pathetic attempts.
Regards,
Mark Patterson
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads