J
joebeagle via AccessMonster.com
I have a form (form1) with a subform (subform2) and another subform (subform3)
. On subform2 there is a text box for mom's employer's name. On subform3
there is a text box for dad's employer's name. On form1 there is a check box
(Check0) that needs to be filled in automatically when either mom or dad has
an employer, or left blank (false) if neither one has an employer.
I have tried several different solutions including:
Nz(Subform1.Form![Employer], Nz(Subform2.Form![Emplyer], False))
IIf (Not IsNull(Forms![Form1]![Subform1].Form![Employer]) And Not IsNull
(Forms![Form1]![Subform2].Form![Employer]), True, False)
Reversing the above IIf for IIf(Is Null).
Any of them seem to work correctly with one operator (EG mom's info), but
when adding the second operator , dad's info (EG And...), the check box
either stays True all the time, or False all the time.
Any ideas? Can this even be done?
Thanks in advance,
Carol Washburn
. On subform2 there is a text box for mom's employer's name. On subform3
there is a text box for dad's employer's name. On form1 there is a check box
(Check0) that needs to be filled in automatically when either mom or dad has
an employer, or left blank (false) if neither one has an employer.
I have tried several different solutions including:
Nz(Subform1.Form![Employer], Nz(Subform2.Form![Emplyer], False))
IIf (Not IsNull(Forms![Form1]![Subform1].Form![Employer]) And Not IsNull
(Forms![Form1]![Subform2].Form![Employer]), True, False)
Reversing the above IIf for IIf(Is Null).
Any of them seem to work correctly with one operator (EG mom's info), but
when adding the second operator , dad's info (EG And...), the check box
either stays True all the time, or False all the time.
Any ideas? Can this even be done?
Thanks in advance,
Carol Washburn