Master-detail don't work??? (MasterField type Date/Time)
- From: macaileacs <available@xxxxxxxxxxxx>
- Date: Mon, 27 Nov 2006 23:57:26 +0100
Hi all
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.
.
- Follow-Ups:
- Re: Master-detail don't work??? (MasterField type Date/Time)
- From: Kevin Frevert
- Re: Master-detail don't work??? (MasterField type Date/Time)
- From: Brian Bushay TeamB
- Re: Master-detail don't work??? (MasterField type Date/Time)
- Prev by Date: Re: TADOQuery.Parameters on PostgreSQL
- Next by Date: Re: Refreshing a current record in a DataSet
- Previous by thread: TADOQuery.Parameters on PostgreSQL
- Next by thread: Re: Master-detail don't work??? (MasterField type Date/Time)
- Index(es):
Relevant Pages
|