D
Dino L.
Hi,
I have a problem, and I just cant fint a good way to solve it.
I have 3 tables in my DB
Table1
-------
IDTable1
....
Table2
-------
IDTable2
IDTable1 (forign key -> Table1)
....
Table3
-------
IDTable3
IDTable2 (forign key -> Table2)
....
Now, on form load I need to fill one combo box with data from table1.
That works good, I just create dataset, fill it with tables, and fill
combo with IDTable1.
But now,
When someone choose one IDTable1 from first combo I have to fill second
combo with data from Table2 (according to forign key
Table2.IDTable1=Table1.IDTable1)??? Also when he choose another IDTable1
from first combo, datas in second combo should also change. (same way is
for 3th combo).
Which event on combo should I use, how to fill second combo after that
event ?!?
I have a problem, and I just cant fint a good way to solve it.
I have 3 tables in my DB
Table1
-------
IDTable1
....
Table2
-------
IDTable2
IDTable1 (forign key -> Table1)
....
Table3
-------
IDTable3
IDTable2 (forign key -> Table2)
....
Now, on form load I need to fill one combo box with data from table1.
That works good, I just create dataset, fill it with tables, and fill
combo with IDTable1.
But now,
When someone choose one IDTable1 from first combo I have to fill second
combo with data from Table2 (according to forign key
Table2.IDTable1=Table1.IDTable1)??? Also when he choose another IDTable1
from first combo, datas in second combo should also change. (same way is
for 3th combo).
Which event on combo should I use, how to fill second combo after that
event ?!?