Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Errorhandling

Status
Not open for further replies.

tomvdduin

Programmer
Sep 29, 2002
155
NL
Hi all,

I want to make a table that can be used as an errorlog. I thought to save info as the current user, formname, procedure name etc. Does somebody has some experience?

greetz

Tom
 
In the error-handling routines that you want to populate the error log you'll need to add a line something like

Code:
DBEngine(0)(0).Execute ("INSERT INTO YourErrorLogTableNameHere (FieldName,AnotherFieldName, YetAnotherFieldName) VALUES ('Value', 'AnotherValue', 'YetAnotherValue');")

Within this construct you could use things like Screen.ActiveObject to return the active object name, Me.ActiveControl to return the name of the active control, CurrentUser to return the username of the guy who screwed up, Err.Number to return the error code and Err.Description to return the full text of the error message.

HTH to get you started. [pc2]
 
OK, thanks, that's what I want to know. I'll let you know when I found difficulties

greetz

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top