none
Database Next auto generated number need to show in a textbox using c# RRS feed

  • Question

  • I am working on an application that needs to have a new ID number every time the user presses the ADD button to add a new record into the database. The data comes from an MS Access 2010 database. I need to display this ID number in a TextBox control on the form. I am using Visual Studio 2010 (C#) Express Edition Design Tools to build the application. 

    How can I achieve this in the TextBox on the form ? What happens if the user deletes a record from the database using the Delete button on the form ??? 

    Can someone please help me with the code on how to do this in the TextBox on the form ???

    Any help will be greatly appreciated.

    Thanks a lot!

    satish

    Monday, March 11, 2013 12:52 PM