Click to See Complete Forum and Search --> : DBGrid Errors


daneb
October 5th, 2001, 12:36 AM
Hello!

I have a form with a DBGrid, named DBGrid1, populated by an Access 97 table data through a Data Control. Data on the DBGrid can be modified. Why is it that the DBGrid issues an error message by itself when VB encounters a wrong input, such as inputting a string in a numeric data field type. VB cannot trap this error because if you get Err.Number, it is still 0. I need to trap this error so that I can customize the error message to make it more understandable for the user. Furthermore, the message box has a "DBGrid" title, that's why it seems that it is the DBGrid that issues the error, not VB. How can this error be trapped?

Thanks!