Newbie question - Unhandled exception OleDbDataAdapater.Update

L

Lance Geeck

I am following an example in the walk throughs that uses an
oledbdataAdapter, grid, and then updates the database when an update button
is pushed. It works fine and is dirt simple. This is going against SQL pubs
authors table.

When I follow the exact same steps with my database and a simple table, the
program breaks while attempting an update on
oledbdataadapter1.update(dsCD1)

The differences are that I am trying to use an Access 2000 database. Other
than that, they seem as if they should be the exact same process.

I did find a help document that says that it could be I am not passing the
database user name and password. As near as I can figure, the database is
not secured in any way.

Thanks in advance for any comments or help you can provide.
 
A

Armin Zingler

Lance Geeck said:
I am following an example in the walk throughs that uses an
oledbdataAdapter, grid, and then updates the database when an update
button is pushed. It works fine and is dirt simple. This is going
against SQL pubs authors table.

When I follow the exact same steps with my database and a simple
table, the program breaks while attempting an update on
oledbdataadapter1.update(dsCD1)

Is an exception raised? Which one?
 
A

Armin Zingler

Lance Geeck said:
Thanks for responding.

The error message is:

An unhandled exception of type 'System.Data.OleDb.OleDbException'
occurred in system.data.dll

This is all that it says.

Catch the exception (Try..Catch..end try) and examine it.

Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top