Hello,
Does anyone know of a easy and simple method with creating a program that will capture errors and store them in a file? (either word, notepad, etc.)
I prefer sticking it in a temp file. Part of this preference is tied to the fact that I learned to do this from a VB programmer who was very distrustful of mdbs, but part of it is that a text file is a much simpler creature than an mdb, and if there's corruption in the mdb, you may not be able to get to your table so easily.
My method is detailed in the Developers' section of my website. Clearly it will require some tweaking to work in your databases, but it's pretty clean.
There's also code up there to build the lines of code you'll want to include in the subs and functions that use the error trapping method.
Please post in the appropriate forum with a descriptive subject; code and SQL, if referenced; and expected results. See thread181-473997 for more pointers.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.