al4629740
asked on
Change error message in datagrid vb6
I have a datagrid that connect to my sql relational database. When I pull up the table on my datagrid, if I try to delete a row that has a foreign key I get the error message
"the delete statement conflicted with the reference constraint.....the conflict occurred in database...."
How can I change this error message when someone is trying to unsuccessfully delete a row to something else such as:
"This row cannot be deleted since there are hours already for this user"
"the delete statement conflicted with the reference constraint.....the conflict occurred in database...."
How can I change this error message when someone is trying to unsuccessfully delete a row to something else such as:
"This row cannot be deleted since there are hours already for this user"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.