I am trying to accomplish the following:
frmPtReg is parent form
combo49 on frmPtReg (when = "current" SmokeCessa control on subform is visible otherwise not visible)
frmEnc is subform
SmokeCessa is y/N control on subform
This is my code
Private Sub frmENC_Enter()
If Forms!frmPtReg!Combo49 = "Current" Then
Forms!frmPtReg!frmENC.Form.SmokeCessa.Visible = Yes
Else
Forms!frmPtReg!frmENC.Form.SmokeCessa.Visible = No
End If
End Sub
First time I enter subform frmEnc SmokeCessa disappears and never becomes visible again, even if Combo49 = "Current"
Is this the correct event to use?
Syntax error?
Thanks in advance
CapnDave
frmPtReg is parent form
combo49 on frmPtReg (when = "current" SmokeCessa control on subform is visible otherwise not visible)
frmEnc is subform
SmokeCessa is y/N control on subform
This is my code
Private Sub frmENC_Enter()
If Forms!frmPtReg!Combo49 = "Current" Then
Forms!frmPtReg!frmENC.Form.SmokeCessa.Visible = Yes
Else
Forms!frmPtReg!frmENC.Form.SmokeCessa.Visible = No
End If
End Sub
First time I enter subform frmEnc SmokeCessa disappears and never becomes visible again, even if Combo49 = "Current"
Is this the correct event to use?
Syntax error?
Thanks in advance
CapnDave