Hi
I am new to Visual Basic.Net and have just started using ADO.Net to interacte with Microsoft Access 2000 databases.
Problem is I am not even getting off the ground.
Sample code that I have basically replicated from a book that modifies two existing records and adds a new record.
"daSysUserAdmin.Update(dsSysUserAdmin, "TSystemUserAdmin"
"
Is giving the error
"An unhandled exception of type 'System.Data.OleDb.OleException' occurred in system.data.dll"
at runtime, when I check the database it has modified the existing records but has not added the new record.
I Have treble checked that my code matches the structure from the book, put in counters to understand if the record is being added in the dataset, which it is, have loaded MDAC and numerous references and tried many different things but all result in this error.
Am using Access 2000 couldnt find anything on the Internet which would suggest known problems for this version of access and ADO.Net It cant be a connection problem when the modified record is being updated. Have tried commenting out the modify records so that the program only has to concentrate on adding the new record but same error occurs.
Has anyone encountered this problem, appreciate some guidance.
Thanks
I am new to Visual Basic.Net and have just started using ADO.Net to interacte with Microsoft Access 2000 databases.
Problem is I am not even getting off the ground.
Sample code that I have basically replicated from a book that modifies two existing records and adds a new record.
"daSysUserAdmin.Update(dsSysUserAdmin, "TSystemUserAdmin"
Is giving the error
"An unhandled exception of type 'System.Data.OleDb.OleException' occurred in system.data.dll"
at runtime, when I check the database it has modified the existing records but has not added the new record.
I Have treble checked that my code matches the structure from the book, put in counters to understand if the record is being added in the dataset, which it is, have loaded MDAC and numerous references and tried many different things but all result in this error.
Am using Access 2000 couldnt find anything on the Internet which would suggest known problems for this version of access and ADO.Net It cant be a connection problem when the modified record is being updated. Have tried commenting out the modify records so that the program only has to concentrate on adding the new record but same error occurs.
Has anyone encountered this problem, appreciate some guidance.
Thanks