D
Dranahan
Guest
Happy New Year Everyone!
I have the following code:
Private Sub fraSecIIIa_AfterUpdate()
If fraSecIIIa = 1 Then
Me.fraSecIIIb.Visible = True
Me.lblSecIIIb.Visible = True
Me.linSecIIIb.Visible = True
ElseIf fraSecIIIa = 2 Then
Me.fraSecIIIb.Visible = True
Me.lblSecIIIb.Visible = True
Me.linSecIIIb.Visible = True
ElseIf fraSecIIIa = 2 And fraSecIIIc = 1 Then
DoCmd.OpenForm "frmComments", acNormal, , "[AdmitCriteriaID]=Forms!frmAdmitCriteria![AdmitCriteriaID]", , acDialog
ElseIf fraSecIIIa = 2 And fraSecIIIc = 2 Then
DoCmd.OpenForm "frmComments", acNormal, , "[AdmitCriteriaID]=Forms!frmAdmitCriteria![AdmitCriteriaID]", , acDialog
End If
My goal is if fraSecIIIa is changed to 2 and fraSecIIIc has been answered, I want my comments form to appear - however, if I have not answered fraSecIIIc, I do not want the comments form to appear.
Any suggestions or is there a problem in my code???
Thank you in advance for any help
I have the following code:
Private Sub fraSecIIIa_AfterUpdate()
If fraSecIIIa = 1 Then
Me.fraSecIIIb.Visible = True
Me.lblSecIIIb.Visible = True
Me.linSecIIIb.Visible = True
ElseIf fraSecIIIa = 2 Then
Me.fraSecIIIb.Visible = True
Me.lblSecIIIb.Visible = True
Me.linSecIIIb.Visible = True
ElseIf fraSecIIIa = 2 And fraSecIIIc = 1 Then
DoCmd.OpenForm "frmComments", acNormal, , "[AdmitCriteriaID]=Forms!frmAdmitCriteria![AdmitCriteriaID]", , acDialog
ElseIf fraSecIIIa = 2 And fraSecIIIc = 2 Then
DoCmd.OpenForm "frmComments", acNormal, , "[AdmitCriteriaID]=Forms!frmAdmitCriteria![AdmitCriteriaID]", , acDialog
End If
My goal is if fraSecIIIa is changed to 2 and fraSecIIIc has been answered, I want my comments form to appear - however, if I have not answered fraSecIIIc, I do not want the comments form to appear.
Any suggestions or is there a problem in my code???
Thank you in advance for any help