Re: TDataBase and TQuary



Ooooph. I did it dynamically. I just spat on allthe OO stuff connected
woth the TDataModule, and made a global, owner-less TDataBase with Init
and DeInit procedures. And it worked!

This meshy program only gained from it.

Thanks you all for replies!

Maarten Wiltink

Perhaps taking one step at a time would help clarify things. Can you
set up a database and query at design-time, then create a database
object at runtime, and make the query switch to it? If you use two
different backend databases, you should be able to deduce from the
query results if it has actually switched.

An easy way to check it is have the DataBaseName and AliasName fields
diferent, so that in the absence of TDataBase the TQuery will not find
anything.
.



Relevant Pages

  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)
  • Re: OT: SQL
    ... query processing. ... FROM Employees e, Employees m, Management mgt ... Manager and Employee Salaries. ... The scheme used does not model database files in general, ...
    (sci.logic)
  • Re: access 2003
    ... I removed the parameters from the form query source. ... boxes from the form header, events, code, etc and ran the form query source ... forms queries and the SQL because syntax of the SQL will change randomly. ... the Access 97 database, I wouldn't have thought any expressions would be ...
    (microsoft.public.access.conversion)
  • RE: Import external data - web query
    ... Your reply for my query is very extensive, this is for importing a file from ... The data source I want isn't listed in the Select Data Source dialog box. ... information used to connect to a database. ... Check your driver First, make sure you have the right ODBC driver (Open ...
    (microsoft.public.excel.misc)
  • Re: access 2003
    ... I removed the parameters from the form query source. ... synchronize combo boxes to the detail section or the parameter form query ... forms queries and the SQL because syntax of the SQL will change randomly. ... the Access 97 database, I wouldn't have thought any expressions would ...
    (microsoft.public.access.conversion)