here is the following code...i am getting error at fill method...

 

 

 Privatete Sub Button1_Click(ByVal sender As System.Object, ByVal e As 
System.EventArgs) Handles Button1.Click

Dim strconn, strsql As String

strconn = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data 
Source=F:\TradersNetwork\Database\TradeNetDB.MDB"

strsql = "select * from cat_mast"

Dim ds As dataset

Dim cn As OleDb.OleDbConnection = New OleDb.OleDbConnection(strconn)

Dim da As New OleDb.OleDbDataAdapter(strsql, cn)

Try

cn.Open()

da.Fill(ds, "table1")

Catch ex As Exception

Label1.Text = ex.Message

End Try

cn.Close()

 

End Sub

End Class

 

can anybody tell me please why i am getting error there...

 

bye

urmila.

krishan kant chamoli <[EMAIL PROTECTED]> wrote:Hi,
As per your code I found that the connection obeject is missing. So create 
connection object, open it and then assign it to dataadapter

KK



urmila nalla wrote:hi

i am getting the error at fill method when i write the following code

dim da as new oledb.oledbdataadapter(strsql,cn)
dim ds as new dataset
da.fill(ds) 

the error is: Overload Resolution failed because no accessible ''Fill' can be 
called with these arguments-------------------------(here i got some arguments 
list)

I am not able to find the reason for this error..

help is appreciated

bye
urmila.


---------------------------------
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort. 

[Non-text portions of this message have been removed]



---------------------------------
YAHOO! GROUPS LINKS 


Visit your group "AspNetAnyQuestionIsOk" on the web.

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


---------------------------------





--------------------------------------------------------------------
Krishan Kant Chamoli Office: +91-172-2653886
AuthorGen Technology (P) Ltd., Fax: +91-172-5018485
24/3, Industrial Area, Phase - 2, Mobile: 9888263726
Chandigarh. INDIA. Pin - 160002. Email: [EMAIL PROTECTED]

--------------------------------------------------------------------
Send instant messages to your online friends http://uk.messenger.yahoo.com 

[Non-text portions of this message have been removed]





Yahoo! Groups Links








__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to