Re: Master-detail don't work??? (MasterField type Date/Time)
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Mon, 27 Nov 2006 20:24:46 -0600
DateTime fields can be problematic because in some databases milliseconds get
Seems that I can't do such a simple and straightforward thing, for which
even an example is given in the docs (and which I've already done
before). Two tables in master-detail relation shown in two DBGrids.
When I run the app, the master table is shown OK; the detail grid is
empty (I made sure that the table itself is NOT empty).
When the app is not running, in the form designer, the detail DBGrid
shows data (the tables are open).
What on earth could be wrong here? I did the following:
On the detail table:
- set the MasterSource to the datasource of the master table
- set the MasterField to the field Timestamp, which is primary key in
the master table and is present in the detail table (one-to-many, so not
a primary key there)
The field tht links the tables (primary key on the master table) is of
type Date/Time (MS Access). Could it be that fields of that type cannot
be used to make master-detail relationship?...
I'd be thankful if anybody could suggest what might be wrong.
dropped when the value is saved. However if you see the master and detail
linked up in IDE then it should work at runtime.
Are you sure the detail table is Open at Runtime.
Are you modifying any of the TadoTable properties of the master or detail at
runtime?
For a check I suggest you create a new project and then copy your TadoTables
,TadoConnection, Tdatasets and TdbGrids to a form in the new project and see if
it works there. If it does you are making some change in code that is affecting
the link.
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- Follow-Ups:
- Re: Master-detail don't work??? (MasterField type Date/Time)
- From: macaileacs
- Re: Master-detail don't work??? (MasterField type Date/Time)
- References:
- Master-detail don't work??? (MasterField type Date/Time)
- From: macaileacs
- Master-detail don't work??? (MasterField type Date/Time)
- Prev by Date: Re: Refreshing a current record in a DataSet
- Next by Date: Re: Connection Failure
- Previous by thread: Master-detail don't work??? (MasterField type Date/Time)
- Next by thread: Re: Master-detail don't work??? (MasterField type Date/Time)
- Index(es):
Relevant Pages
|