error at line OleDbDataAdapter1.Fill(DsAuthors1)

  • Thread starter Ian OBrien via .NET 247
  • Start date
I

Ian OBrien via .NET 247

Hi,
Im following the visual Basic Walkthrough 'Simple Data Access in a Windows Form'
in Visual Studio.net which throws an error at the line OleDbDataAdapter1.Fill(DsAuthors1)
ERROR:
An unhandled exception of type 'System.Data.OleDb.OleDbException'
occurred in system.data.dll

any suggestions?
Thanks
T
 
M

Martin Marinov

to see what is the error put the OleDbDataAdapter1.Fill(DsAuthors1) in try
catch blocks
also 2 suggestions:
1. have you initialized the DsAuthors1 ? - if it null - .net framework will
throw you an exception
2. check if you connection is correct - check here :
http://www.connectionstrings.com/

Regards
Martin
 

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