Textboxes and OleDbException

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • artteam
    New Member
    • Feb 2007
    • 18

    Textboxes and OleDbException

    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.
  • bplacker
    New Member
    • Sep 2006
    • 121

    #2
    can you post some code, and/or the exact error message you are getting?

    Comment

    • artteam
      New Member
      • Feb 2007
      • 18

      #3
      I thank you for your time. We could figur it out. All we did was, used RejectChanges method which does not allow the user to enter any duplicate values.
      Thank you very much.

      Comment

      Working...