Solved

problem writing exceptions to Access

Posted on 2004-09-10
3
191 Views
Last Modified: 2010-04-15
Hi,

I'm trying to nail down a bug which has been nagging me, so I decided to log any and all exceptions to Access.  Trouble is that I can't seem to get a Memo field to accept the exception, which is chocked filled of special characters.

Any ideas about how to get such a chunk of text into Access?  Or if you know any other way to accomplish my goal of logging an exception, I'd really appreciate it.


Thanks,
Bob
0
Comment
Question by:ba272
3 Comments
 
LVL 20

Expert Comment

by:TheAvenger
Comment Utility
Do you want to log only the message? If so, you can use a simple Text field. It takes less memory and is much easier to handle. Just make its size 255 (I think this is the maximum) and you will be able to save at least 99.99% of the messages (the other 0.01% will be too long and will be cut)
0
 
LVL 8

Accepted Solution

by:
Razzie_ earned 500 total points
Comment Utility
'which is chocked filled of special characters.'. Are you saving the Exception.Message and not trying to save the Exception object itself?
0
 

Author Comment

by:ba272
Comment Utility
Thanks.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now