How can i have the current function name to include in the error message?
erreur_code:
Dim errmsg As String
Dim errmsg1 As String
Dim errmsg2 As String
Dim errmsg3 As String
If fLocaleInfo(LOCALE_SENGLANGUAGE) = "French" Then
errmsg = "Veuillez noter le message suivant et contacez l'infomatique!"
errmsg1 = Chr(13) & "Module : " & err.Source
errmsg2 = Chr(13) & "No Erreur:" & err.Number
errmsg3 = Chr(13) & "Message d'erreur :"
Else
errmsg = "Please note the following message and contact the help desk!"
errmsg1 = Chr(13) & "Module : " & err.Source
errmsg2 = Chr(13) & "No Error:" & err.Number
errmsg3 = Chr(13) & "Error message :"
End If
MsgBox errmsg & errmsg1 & errmsg2 & errmsg3 & err.Description, vbCritical, "Attention"
Resume fin
Thank you!
erreur_code:
Dim errmsg As String
Dim errmsg1 As String
Dim errmsg2 As String
Dim errmsg3 As String
If fLocaleInfo(LOCALE_SENGLANGUAGE) = "French" Then
errmsg = "Veuillez noter le message suivant et contacez l'infomatique!"
errmsg1 = Chr(13) & "Module : " & err.Source
errmsg2 = Chr(13) & "No Erreur:" & err.Number
errmsg3 = Chr(13) & "Message d'erreur :"
Else
errmsg = "Please note the following message and contact the help desk!"
errmsg1 = Chr(13) & "Module : " & err.Source
errmsg2 = Chr(13) & "No Error:" & err.Number
errmsg3 = Chr(13) & "Error message :"
End If
MsgBox errmsg & errmsg1 & errmsg2 & errmsg3 & err.Description, vbCritical, "Attention"
Resume fin
Thank you!