Hi All,
My team and I are working on an Inventory Management project in Visual C#.Net and it is a WinFrom application.Com ing to the point, one of the Winform of the project lets the user to add items to the database.It was working fine when I did not validate the text in the textboxes as entered by the user.But when I started validating using errorProvider it throws and OleDbException saying that, the changes could not be made to the database, as it would create duplicate values in the database and it is suggesting to change the index of certain fields of which I am not very sure.
Is text validation and adding to the database only a coincidence? or is anything wrong with the database part of the code?
I hope someone would help me out with this.
Thank you in advance.
My team and I are working on an Inventory Management project in Visual C#.Net and it is a WinFrom application.Com ing to the point, one of the Winform of the project lets the user to add items to the database.It was working fine when I did not validate the text in the textboxes as entered by the user.But when I started validating using errorProvider it throws and OleDbException saying that, the changes could not be made to the database, as it would create duplicate values in the database and it is suggesting to change the index of certain fields of which I am not very sure.
Is text validation and adding to the database only a coincidence? or is anything wrong with the database part of the code?
I hope someone would help me out with this.
Thank you in advance.
Comment