I created the 2 codes below both worked while i directly wrote in as the control source in design view however when did this as an on click event i am having issues
This code gets an error argument not optional
Code:
Private Sub txtDSE_Click()
Me.txtDSE = IIf([Resolution Date And Time] > [txtRTF], Diff2Dates("ymdhn", [txtRTF], [Resolution Date And Time]))
End If
End Sub
This code gets a run time error 424
Code:
Private Sub txtSS_Click()
Me.txtSS = IIf([txtDSE] Is Null, "Within SLA", "SLA Exceeded")
End Sub