Table holding error log -
Posted on 2011-03-18
(This is probably a bit lazy but...)
I have a table that is log of all errors that occur.
A fundamental part of this simple log is ;
AuditDetails = AuditDetails & "Form : " & Screen.ActiveForm.Name & " User: " & Environ("Username")
I do NOT pass any actual data to the Audit function.
You will note that the "ActiveForm" is referred to.
Question: Is there any other info such as "ActiveForm" that I could refer to.? For example, I was wondering could I some how refer to some "primary index" of a table??
I am hoping that I can add some additional helpful info to the error message without actually passing any to it! (I already know the user, the time and the form ...)