crisis2007
Technical User
I have a form that is called SF_Event (form1). I have a linked form called F_EventDetails (form2). F_EventDetails has a subform in it called SF_Stat. I was wondering if there was a way that I can put a label on my Main form that is visible only if a control in the SF_Stat subform has a value in it (is not null). What I was thinking was:
If IsNull([Forms![F_EventDetails]![SF_Stat].Form![Car] Then
Me![Label1].Visible = False
Therefore, if the control named "Car" has a value in the subfom of form 2, then the label I have on my form 1 would say something like "More Info".
I tried this and it does not work. I believe I received a syntax error message. I placed the code on the OnOpen event but perhaps that was wrong. I am trying to learn how to use code but continue to struggle along with trial and error.
If IsNull([Forms![F_EventDetails]![SF_Stat].Form![Car] Then
Me![Label1].Visible = False
Therefore, if the control named "Car" has a value in the subfom of form 2, then the label I have on my form 1 would say something like "More Info".
I tried this and it does not work. I believe I received a syntax error message. I placed the code on the OnOpen event but perhaps that was wrong. I am trying to learn how to use code but continue to struggle along with trial and error.