0

i want to show records from other tables but this error occurs

Sub fillorderdetail()

        conn.Open()
       
        Dim adpt As New SqlDataAdapter("select * from orderdetail", conn)
        Dim ds As New DataSet
        adpt.Fill(ds, "orderdetail")
        DataGridView2.DataSource = ds.Tables("orderdetail")
        conn.Close()
       
    End Sub
2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by hericles
0

There will be something wrong with the connection string for the connection object. Where and how are you specifying the connection object?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.