D
DS
I have an If statement to set a field, this is in a module.
I'm getting variable not defined error.
Any help is appreciated.
Thanks
DS
Public Function Response(frm As Form) As String
Select Case frm!TxtCode.value
Case "AB"
DoCmd.OpenForm "frmMsgCC"
If frm = "frmFXRefundCC" Then
Forms!frmMsgCC!TxtAction = 1
ElseIf frm = "frmPadPreAuth" Then
Forms!frm!frmMsgCC!TxtAction = 2
End If
Forms!frmMsgCC!TxtMsg = "(AB) ABORTED"
Forms!frmMsgCC!TxtMsg2 = "Upstream System Error, Try Again
Later"
End Select
I'm getting variable not defined error.
Any help is appreciated.
Thanks
DS
Public Function Response(frm As Form) As String
Select Case frm!TxtCode.value
Case "AB"
DoCmd.OpenForm "frmMsgCC"
If frm = "frmFXRefundCC" Then
Forms!frmMsgCC!TxtAction = 1
ElseIf frm = "frmPadPreAuth" Then
Forms!frm!frmMsgCC!TxtAction = 2
End If
Forms!frmMsgCC!TxtMsg = "(AB) ABORTED"
Forms!frmMsgCC!TxtMsg2 = "Upstream System Error, Try Again
Later"
End Select