D
DS
I have a function in a Module and it's not responding. When I check it in
the Immediate windo it works.
I'm calling it as such from a form.
If dc_response_code = "00" Then
MsgBox "Approved"
Else
Response
End If
Public Function Response(dc_response_code)
Select Case dc_response_code
'Case "01"
' DoCmd.OpenForm "frmMsgInfo"
' Forms!frmMsgInfo!TxtMsg = "Declined"
'Case "85"
' DoCmd.OpenForm "frmMsgInfo"
' Forms!frmMsgInfo!TxtMsg = "Voided"
Case "FE"
DoCmd.OpenForm "frmMsgInfo"
Forms!frmMsgInfo!TxtMsg = "FE Format Error, Trinity Gateway
Service API Request"
End Select
Can you not open a form from a fuction in a module?
Thanks
DS
the Immediate windo it works.
I'm calling it as such from a form.
If dc_response_code = "00" Then
MsgBox "Approved"
Else
Response
End If
Public Function Response(dc_response_code)
Select Case dc_response_code
'Case "01"
' DoCmd.OpenForm "frmMsgInfo"
' Forms!frmMsgInfo!TxtMsg = "Declined"
'Case "85"
' DoCmd.OpenForm "frmMsgInfo"
' Forms!frmMsgInfo!TxtMsg = "Voided"
Case "FE"
DoCmd.OpenForm "frmMsgInfo"
Forms!frmMsgInfo!TxtMsg = "FE Format Error, Trinity Gateway
Service API Request"
End Select
Can you not open a form from a fuction in a module?
Thanks
DS