Link to home
Start Free TrialLog in
Avatar of al4629740
al4629740Flag for United States of America

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"
ASKER CERTIFIED SOLUTION
Avatar of p_sie
p_sie
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial