Board index » delphi » Datasource links won't 'stick'

Datasource links won't 'stick'

I'm adding to an existing program.  I added two TTables, two TDatasources to
existing data module and linked as ususal.  On a new form I have TDBGrids,
TDBedit fields, and TDBnav bars.  Every time I load the new form in design
mode, the datasource property is empty on my controls which are linked to
these new data access components.  I have to relink everything each time I
load the form.  This can't go on!

Another indication is when I open the form without the data module open, I
can't see these 2 new datasources in the drop down list on the datasource
property of any DB controls.  Open the data module and they then appear in
the drop down list.  Anyboody seen this? Anybody know a solution? Thanks in
advance.

Chas

 

Re:Datasource links won't 'stick'


I had this with Delphi 3.02 - the problem has ceased since D4.02 and BDE501

Pierre
http://delphidao.finalfiler.com

Quote
Chas Randal <c...@onr.com> wrote in message

news:78q6gl$4kd15@forums.borland.com...
Quote
>I'm adding to an existing program.  I added two TTables, two TDatasources
to
>existing data module and linked as ususal.  On a new form I have TDBGrids,
>TDBedit fields, and TDBnav bars.  Every time I load the new form in design
>mode, the datasource property is empty on my controls which are linked to
>these new data access components.  I have to relink everything each time I
>load the form.  This can't go on!

>Another indication is when I open the form without the data module open, I
>can't see these 2 new datasources in the drop down list on the datasource
>property of any DB controls.  Open the data module and they then appear in
>the drop down list.  Anyboody seen this? Anybody know a solution? Thanks in
>advance.

>Chas

Re:Datasource links won't 'stick'


Have you included the DataModule in the 'uses' clause of the other
form?

On Thu, 28 Jan 1999 11:21:17 -0600, "Chas Randal" <c...@onr.com>
wrote:

Quote
>Another indication is when I open the form without the data module open, I
>can't see these 2 new datasources in the drop down list on the datasource
>property of any DB controls.  Open the data module and they then appear in
>the drop down list.  Anyboody seen this? Anybody know a solution? Thanks in
>advance.

Other Threads