Hi,
How can I, when I push a button, check if a value exists in a table and then depending on that, open a new form with the values in that form filled in or open a new form in add mode?
Let met explain: I have a form, where I can enter basic information of a family (last name, address etc). On the bottom of that form I have two subforms, that shows the head of the family (mostly a male person) and it's partner. When I enter the family form, it's empty. So then I fill in the textboxes with the name and address. Then I want to add a head person, so I click a button. Then Access must check if that family has already have a head person, if not, show an empty form, else give the details of that person. The first time, there's no details of a head person because it's a new family. But when I have already entered the head person and I click the button, it must show the details of that person.
How can I do that?
tnx in advance 4 your answer!
How can I, when I push a button, check if a value exists in a table and then depending on that, open a new form with the values in that form filled in or open a new form in add mode?
Let met explain: I have a form, where I can enter basic information of a family (last name, address etc). On the bottom of that form I have two subforms, that shows the head of the family (mostly a male person) and it's partner. When I enter the family form, it's empty. So then I fill in the textboxes with the name and address. Then I want to add a head person, so I click a button. Then Access must check if that family has already have a head person, if not, show an empty form, else give the details of that person. The first time, there's no details of a head person because it's a new family. But when I have already entered the head person and I click the button, it must show the details of that person.
How can I do that?
tnx in advance 4 your answer!