H
Hammy
Guest
OK, I have a small problem. I am building a member db for my church, and am stuck on something.
I have and Access db with...
families table with FaimlyID primary key
individuals table with family field related to the family id in the families table, and relationship field (value list head;spouse;child;other values from a combo box)
On the Family form where the user enters family members (which is a subform accessing the indivduals table) I want to set it up that if they choose head or spouse for any idividual in that family and there is already a head or spouse named, that it won't allow them to do so.
My thought was to have a query that selected all records where relationship = "head" and run it in the onchange event of the combo box....if the recordcount <> 0 then throw up a msg box saying no can do.
However, I think that's the Cold Fusion developer in me coming out and I can't seem to find a solution with Access and vb.
Any ideas?
Hammy
I have and Access db with...
families table with FaimlyID primary key
individuals table with family field related to the family id in the families table, and relationship field (value list head;spouse;child;other values from a combo box)
On the Family form where the user enters family members (which is a subform accessing the indivduals table) I want to set it up that if they choose head or spouse for any idividual in that family and there is already a head or spouse named, that it won't allow them to do so.
My thought was to have a query that selected all records where relationship = "head" and run it in the onchange event of the combo box....if the recordcount <> 0 then throw up a msg box saying no can do.
However, I think that's the Cold Fusion developer in me coming out and I can't seem to find a solution with Access and vb.
Any ideas?
Hammy