Hi All,
I have code that's not working and decided maybe it's me (and not the code). Based on the result of a combo box on a subsubform (Non child/child), I'd like to show and hide fields. i.e. I'd show an anniversary date for an adult rather than a birth date for a child.
This worked when my form was a subform but now that it's buried one layer deeper into another subform--it no longer works.
Do I refer to the subsubform as a form or control to change the fields? Neither seems to be working. I would think the fields exist with the subsubform rather than it's container the control.
Also, can I refer to the subsubform directly,
forms("Copy of Neighborhood Input Form").Control("Family).form.control("Neighbors").form
or do I need to dimension a form and control and set them?
I've tried all of the above in different arrangements and nothing seems to work. I've been able to recognize my form and it's recordsource but then I get an error message that the field doesn't exist (none of the fields are recognized). If I'm on the right form at the right level, why wouldn't I be able to see the fields? Like I said earlier, this worked until I buried my subform one layer deeper.
Thanks!
I have code that's not working and decided maybe it's me (and not the code). Based on the result of a combo box on a subsubform (Non child/child), I'd like to show and hide fields. i.e. I'd show an anniversary date for an adult rather than a birth date for a child.
This worked when my form was a subform but now that it's buried one layer deeper into another subform--it no longer works.
Do I refer to the subsubform as a form or control to change the fields? Neither seems to be working. I would think the fields exist with the subsubform rather than it's container the control.
Also, can I refer to the subsubform directly,
forms("Copy of Neighborhood Input Form").Control("Family).form.control("Neighbors").form
or do I need to dimension a form and control and set them?
I've tried all of the above in different arrangements and nothing seems to work. I've been able to recognize my form and it's recordsource but then I get an error message that the field doesn't exist (none of the fields are recognized). If I'm on the right form at the right level, why wouldn't I be able to see the fields? Like I said earlier, this worked until I buried my subform one layer deeper.
Thanks!