Hi
I have one combo box (cboMASTER)
What I would love to do is select a name from this combo box and I would like about 20 text boxes to populate based on the value of column 0 in the combo box, that is the record ID
cboMASTER = 1,FullName
What the form will show is a family tree. And will show relatives based on who I select in a combo box cboMASTER
It will show mother, father, grand father etc etc
I have 1 table
In the table there is MainID, FatherID, MotherID, ChildID, SpouseID etc
So if I select lets say Bart Simpson who has an ID of 1, and motherid is 3 etc etc, the form will look like something like this and show FullName
How would I code this in Access VBA?
It will requery all text boxes on cboMAIN change update
Would I do a SQL Statement like Select * from where for each text box based on the value of the of the combo box?
Hard to word this sorry! thanks in advanced!
I have one combo box (cboMASTER)
What I would love to do is select a name from this combo box and I would like about 20 text boxes to populate based on the value of column 0 in the combo box, that is the record ID
cboMASTER = 1,FullName
What the form will show is a family tree. And will show relatives based on who I select in a combo box cboMASTER
It will show mother, father, grand father etc etc
I have 1 table
In the table there is MainID, FatherID, MotherID, ChildID, SpouseID etc
Code:
Example for Bart Simpson in tblMAIN MainID FatherID MotherID ChildID SpouseID FullName 1 2 3 0 0 Bart Simpson 2 3 4 1 3 Homer Simpson 3 5 6 1 2 Marg Simpson
So if I select lets say Bart Simpson who has an ID of 1, and motherid is 3 etc etc, the form will look like something like this and show FullName
Code:
/ Homers Dad (txtGfather)
/ Homer Simpson (txtFather)
| \ Homers Mom (txtGmother)
Bart Simpson (cboMASTER 1,FullName)
| / marg's dads dad (txtFather3)
| / margs dad (txtGFather2)
\ Marg Simpson (txtMother)
\ margs mom (txtGmother2)
It will requery all text boxes on cboMAIN change update
Would I do a SQL Statement like Select * from where for each text box based on the value of the of the combo box?
Hard to word this sorry! thanks in advanced!
Comment