
Getting function and procedure names using VBA
Hi Mike,
I'm not sure whether this is possible
or not however, your error handling could
take care of this.
I use a free add-in that generates a basic error
handler. it looks like this:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure cboClients_Click of Form
frmViewPmnts"
You could simply write that message to a table.
You could of course write this yourself.
If you want the add-in, it's at:
http://www.mztools.com/
Only for 2000 and above though.
HTH
Dan Artuso, MVP
Quote:
> Hi,
> Is it possible to dynamically get the name of a function or procedure that
> is currently running. We want to be able to write the name of the function
> to an ErrorLog table when an error occurs.
> All the books we have looked at say that it isn't possible in VBA (Access
> 2000)
> Thanks
> Mike