G
Guest
Hi,
I have a table tblPeople -
ID (AutoKey)
LastName
FirstName
Phone
HeadofHousehold (Yes/No)
HeadID
it should hold the names of people, and if they are of the same family, just
the head of household should have the phone, the rest, should "point" to him
using Head ID.
So the data should be:
ID LastName First Name Phone HeadofHousehold Head ID
== ====== ======= ==== =========== ======
1 Smith John 555-555-5555 YES
2 Smith Jane NO
1
3 Smith Child NO
1
4 Peeves George 512-222-2222 YES
Etc...
I would like the HEAD ID to be a combo box, and use the following query:
SELECT tblPeople.ID, tblPeople.LastName, tblPeople.FirstName FROM tblPeople
where tblPeople.HeadofHousehold = YES;
Now what is happening is that it the combo box shows ONLY the IDs...
so I get a list:
1
4
Whereas I want it to show:
1 Smith John
4 Peeves George
Any idea how to make it happen?
I have a table tblPeople -
ID (AutoKey)
LastName
FirstName
Phone
HeadofHousehold (Yes/No)
HeadID
it should hold the names of people, and if they are of the same family, just
the head of household should have the phone, the rest, should "point" to him
using Head ID.
So the data should be:
ID LastName First Name Phone HeadofHousehold Head ID
== ====== ======= ==== =========== ======
1 Smith John 555-555-5555 YES
2 Smith Jane NO
1
3 Smith Child NO
1
4 Peeves George 512-222-2222 YES
Etc...
I would like the HEAD ID to be a combo box, and use the following query:
SELECT tblPeople.ID, tblPeople.LastName, tblPeople.FirstName FROM tblPeople
where tblPeople.HeadofHousehold = YES;
Now what is happening is that it the combo box shows ONLY the IDs...
so I get a list:
1
4
Whereas I want it to show:
1 Smith John
4 Peeves George
Any idea how to make it happen?