error at line OleDbDataAdapter1.Fill(DsAuthors1)

  • Thread starter Thread starter Ian OBrien via .NET 247
  • Start date 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
 
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
 
Back
Top