473,382 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

error at line OleDbDataAdapter1.Fill(DsAuthors1)

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

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>/2/Acv8duU27bt33bjSLzA==</Id>
Nov 16 '05 #1
1 1654
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

"Ian OBrien via .NET 247" <an*******@dotnet247.com> wrote in message
news:#l**************@TK2MSFTNGP12.phx.gbl...
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

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>/2/Acv8duU27bt33bjSLzA==</Id>

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JohnFol | last post by:
I have followed one of the walkthroughs that shows a parameterised query populating some text boxes that are data bound to a data set. The full details are found at ...
2
by: J | last post by:
I'm experimenting with strongly typed datasets, and when the .Fill method is called, the RowChanging fires for each row. This causes a problem when the existing data does not adhere to the rules...
0
by: mike | last post by:
Hi there: I've read an excellent "how to"-article by Microsoft (no. 306227) - partly cited cited at the end of this email). I have implemented the code related to the part "How to Add a...
6
by: LU | last post by:
A)I build a datagrid based on a calendar date selection. B)When user clicks a button column on the datagrid I want to highlight this row. I use the code below to highlight the row. ***** CODE...
7
by: jaYPee | last post by:
I am using dataset as a datasource for my datagrid. I'm wondering how to program to autosave the changes made in a datagrid just like microsoft access. any help is greatly appreciated.
3
by: Marnie | last post by:
Hi there I am new to VB.Net (formerly a Centura 'Gupta' programmer) and just trying to do a simple excercise out of the help to populate a couple of text fields on a form by using a parameterized...
2
by: K R Lal | last post by:
Hi, Any idea how to fill a dropdownlist thru dataset I done like this ddLst1.DataSource = myDataSet ddLst1.DataMember = myDataSet.Tables(0).Columns(1).Caption ddLst1.DataValueField =...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.