I have added a dataset and connected with my table (Add New Item >> DataSet)
Then I am trying to use the following code to fill Tableadapter with my dataset. But it is showing an error. Could anybody help me please?
Dim dAdt As New SqlDataAdapter()
dAdt.Fill(dsArticles, "tblArticles")
Please also note I have put a parameter on my dataset as well (where ProductID=@PID)
Thanks
Add dataset using Add New >> Dataset and configure it.
Then in the namespace of the forms, add reference as
Imports DemoApplication.dsArticlesTableAdapters
Demoapplication is the name of your application and dsArticles is the name of added DataSet.
Then in the button, where you want to access the dataset and table, add code: