Hi all,
I have a small database and two tables with master/detail relation. I just try to make a simple query and test it with the try except block. So the query works without error. But the DBGrid doesnt refresh the data. Any help highly appreciated.
Regards.
[solved] Master/Detail query
Moderators: gto, cipto_kh, EgonHugeist
-
- Fresh Boarder
- Posts: 15
- Joined: 20.10.2009, 16:11
[solved] Master/Detail query
Last edited by IndianaJones on 15.01.2013, 01:01, edited 1 time in total.
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
IndianaJones,
currently i do not really understand you? ):
What exactly is the issue we're talking about?
An MasterDetail example:
currently i do not really understand you? ):
What exactly is the issue we're talking about?
An MasterDetail example:
Code: Select all
MasterQuery.SQL.Text := 'SELECT * FROM department ORDER BY dep_id';
MasterQuery.Open;
DetailQuery.SQL.Text := 'SELECT * FROM people';
DetailQuery.MasterSource := MasterDataSource;
DetailQuery.MasterFields := 'dep_id';
DetailQuery.LinkedFields := 'p_dep_id';
DetailQuery.Open;
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/