Subject | RE: [IBO] Configure Queries at run_time |
---|---|
Author | Svein Erling Tysvaer |
Post date | 2002-11-13T08:54:36Z |
At 17:38 12.11.2002 +0200, Wayne wrote:
qryDetail.MasterSource := IB_DataSource1;
(of course, you have to add the name of the datamodule before both
qryDetail and IB_Datasource1 if they are located there)
Set
>I must be rather silly in asking that ,Just assign the properties, e.g.
>I have found my own error,
>
>1) the SQL statement needs spaces between keywords.
>
>2) why not just use a datamodule if you dont want a Form.
>
>But,
>
>I would like to know how does one set the RELATION-SHIPS
>at Runtime ( Master-Detail )
qryDetail.MasterSource := IB_DataSource1;
(of course, you have to add the name of the datamodule before both
qryDetail and IB_Datasource1 if they are located there)
>Since coping the SQL from the view as text does not work ~Well, you still have (at least) one missing space:
> 'DELETE FROM CLIENT_ENQ_DESC' +HTH,
> 'WHERE' +
Set