G
Gitche Gumee
Here's my setup:
Main form with tab control
Tab1 has a subform (Subform1). That subform has a subform (Subform1A).
Tab2 has a subform (Subform2).
I have conditional formatting on a field (Field1A) in Subform1A that depends
on the value of a field in Subform1 (Field1). In the AfterUpdate Event of
Field1, I requery Subform1A. The conditional formatting doesn't happen
without requerying the subform.
All works fine as long as I stay on Tab1. When I click Tab2 and then click
back to Tab1, the conditional formatting in Subform1A is hosed. Subform1A
does not seem to know the value of Field1 anymore to set the conditional
formatting. I can get Subform1A to display properly again by selecting
Records | Refresh. But I can't seem to make this work programmatically.
I have tried requerying the Main Form, Subform1 and Subform2 in the GotFocus
event of Subform1, and other things I'm sorry I don't remember right now. Can
anyone give me any insight?
Main form with tab control
Tab1 has a subform (Subform1). That subform has a subform (Subform1A).
Tab2 has a subform (Subform2).
I have conditional formatting on a field (Field1A) in Subform1A that depends
on the value of a field in Subform1 (Field1). In the AfterUpdate Event of
Field1, I requery Subform1A. The conditional formatting doesn't happen
without requerying the subform.
All works fine as long as I stay on Tab1. When I click Tab2 and then click
back to Tab1, the conditional formatting in Subform1A is hosed. Subform1A
does not seem to know the value of Field1 anymore to set the conditional
formatting. I can get Subform1A to display properly again by selecting
Records | Refresh. But I can't seem to make this work programmatically.
I have tried requerying the Main Form, Subform1 and Subform2 in the GotFocus
event of Subform1, and other things I'm sorry I don't remember right now. Can
anyone give me any insight?