The first if statement is working as desired, however I would like to add a message popup that if the user has "yes" in the first field and "n/a" in the next field, they need to select a measurement. Can you help me with the syntax, please?
Private Sub Next_yr_Impact_Change()
Dim Message As String
If Forms![frm_exception_updateModal]![Next_yr_Impact] = "No" Then
Forms![frm_exception_updateModal]![Next_Grid].Value = "n/a"
Forms![frm_exception_updateModal]![GDC_Baseline_Adj].Value = 0
Forms![frm_exception_updateModal]![FP_Baseline].Value = 0
ElseIf Forms![frm_exception_updateModal]![Next_yr_Impact] ="yes" and forms![frm_exception_updatemodal]![Next_Grid].value] = "n/a" Then
Message = "Select Measurement"
End If
End Sub
Private Sub Next_yr_Impact_Change()
Dim Message As String
If Forms![frm_exception_updateModal]![Next_yr_Impact] = "No" Then
Forms![frm_exception_updateModal]![Next_Grid].Value = "n/a"
Forms![frm_exception_updateModal]![GDC_Baseline_Adj].Value = 0
Forms![frm_exception_updateModal]![FP_Baseline].Value = 0
ElseIf Forms![frm_exception_updateModal]![Next_yr_Impact] ="yes" and forms![frm_exception_updatemodal]![Next_Grid].value] = "n/a" Then
Message = "Select Measurement"
End If
End Sub