I'm using an already existing database for my project, the data types are all set inside the access db, so I get the default DataGridView DataError every time I try to put something different in there. How do I replace the default message with something like 'Wrong data type' (that's the only exception I need to handle). If somebody could be so nice and explain it to me along with the whole 'handling a withevents variable' (I can't get that to work either).
I made a simple application that can add/save/delete/search records in an access database. Each of the fields in the database had data type you can input specified inside the access file, and whenever I try to input something else, it gives me this lengthy error (There was an error in the DataGridView etc etc.) and tells me to 'handle the DataError exception' to replace it with a different message. I need to replace the default message with something else. Any chance you could help me with that? That's the best I could explain my problem.