Good morning again,
I'm having a problem with the code
Code:
IdentifyMyProg = Form_m_AU.ProgrAUT
a bug opens when the variable IdentifyMyProg must take the value of a text box present in the Form_m_AU.ProgrAUT when this subform is not opened (not showed) in the parent form.
I tried the following instructions without success:
Code:
If Nz(Form_m_AU.ProgrAUT, 0) = 0 Then
IdentifyMyProg = "T" ‘ T as true
Else: IdentifyMyProg = Form_m_AU.ProgAUT
End If
other code tried:
Code:
If [Forms]![m_AA_AB]!TabCtl121.Pages(2).Visible = True Then
IdentifyMyProg = Form_m_AU.ProgrAUT
Else: IdentifyMyProg = "F" ‘ F as false
'End If
Thanks for your answers