Home » questions » Hi,I am using VB.Net 2005.I create a datasource to a MS Access database.Then I add a DataGridView to

Hi,I am using VB.Net 2005.I create a datasource to a MS Access database.Then I add a DataGridView to

2006-08-08 22:25:22, Category: Programming & Design
After that, I add a new record to one of the table in the database with MS Access 2003. When I open the VB.Net project, it having error. The error message : "The designer cannot process the code at line 107: Me.ClientBindingSource.DataSource = Me.InsDataSet". What should I do? Am I need to delete the old datasource connection and "re-add" a new datasource connection to the modified database? It yes, then I need to modify my previous database programming because it all base on the "old" datasource connection. Please help! Thank you very much.

Answers

  1. viewtyjoe

    On 2006-08-08 22:33:41


    You shouldn't have to modify your data connection unless the file name of your database changed. The problem may have been that you were modifying the database in Access, and the program couldn't connect to the database while it was being modified.
  2. Indian_Male

    On 2006-08-08 22:32:19


    The database format might have changed. Re-create the connection. Data sources doesnt affect your programming - they just act like locators for data. With either DSN, you are using same database. So no need for you to re-code.