cajsoft
Aug 14th, 2000, 10:59 AM
Hi,
I've been trying all day to create a small program that allows a user to select an entry from table2 which in turn will populate another box table1.
so for example, If a user clicks on Table2 Stopreason, I would like the listbox for Table1 to show the Faultcause's (1 to many) associated with the Stopreason. This should be possible as there is a Primary and Foreign keys in place between the 2 databases (FaultId)
Table1
------
CauseId (Pk)
FaultId (FK)
Faultcause
Table 2
------
Faultid (Pk)
Stopreason
Fault
Do I need an array to achieve this result? If so, how would I code it so that the array keeps all information on the 2 tables, bearing in mind that I dont know the size of the database (SQL) I'm using ADO.
This is driving me mad!
Thanks
Craig.
I've been trying all day to create a small program that allows a user to select an entry from table2 which in turn will populate another box table1.
so for example, If a user clicks on Table2 Stopreason, I would like the listbox for Table1 to show the Faultcause's (1 to many) associated with the Stopreason. This should be possible as there is a Primary and Foreign keys in place between the 2 databases (FaultId)
Table1
------
CauseId (Pk)
FaultId (FK)
Faultcause
Table 2
------
Faultid (Pk)
Stopreason
Fault
Do I need an array to achieve this result? If so, how would I code it so that the array keeps all information on the 2 tables, bearing in mind that I dont know the size of the database (SQL) I'm using ADO.
This is driving me mad!
Thanks
Craig.