Adam, I was asking a serious question, which is why I followed it up with 'is this about error handling?' You're not really adding much with those comments.
kirkm; I thought you might be doing something like that. Since you would have to 'capture' the error number and/or description anyway in order to display it there, you don't need to get it from the status bar - you already have (or had) it. Depending on your preference, you could log it in a table or text file. I've used both and the advantage to the file is that you don't have to open the db to inspect for errors if that's all you need to do.