Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can any body help me in below code which throws an error for the field Adv.

Child list for field Adv cannot be created.

Dim sCommand As SqlCommand
Dim sAdapter As SqlDataAdapter
Dim sBuilder As SqlCommandBuilder
Dim sDs As DataSet
Dim sTable As DataTable
Dim OleDb As String = "SELECT * FROM Adv"
DBMS.Open()
sCommand = New SqlCommand(OleDb, DBMS)
sAdapter = New SqlDataAdapter(sCommand)
sBuilder = New SqlCommandBuilder(sAdapter)
sDs = New DataSet()
sAdapter.Fill(sDs, "Adv")
sTable = sDs.Tables("Adv")
DBMS.Close()
ChkDgv.DataSource = sDs.Tables("Adv") <<<( The Error Shows On This Line )
Posted
Comments
hspl 20-Aug-15 4:17am    
Please any body help me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900