🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.databases
Article #18

How can I choose at run-time what MSAccess .MDB file to read from?

#18
From: Ian
Date: Thu, 30 Sep 1999 00:00
20 lines
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
Technical Details
Message-ID: <37F2C047.FE276357@gil.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ffff5,ddd3efdaec37c032,start
X-Google-Attributes: gidffff5,public
X-Google-Thread: 115d96,ddd3efdaec37c032,start
X-Google-Attributes: gid115d96,public
From: Ian <comcraft@gil.com.au>
Subject: How can I choose at run-time what MSAccess .MDB file to read from?
Date: 1999/09/30
Message-ID: <37F2C047.FE276357@gil.com.au>
X-Deja-AN: 530955988
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: 30 Sep 1999 11:39:57 +1000, nas2ip238.ipswich.gil.com.au
Organization: Global Info-Links
MIME-Version: 1.0
Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database