Public Function GetCategories() As DataSet
Dim query As String = "SELECT * FROM Categories"
Dim cmd As New OleDbCommand(query)
Return FillDataSet(cmd, "Categories")
End Function
Asked
Active
Viewed 75 times
-1
EJoshuaS - Stand with Ukraine
- 11,977
- 56
- 49
- 78
-
This isn't a Visual Studio question. Please tag properly. – EJoshuaS - Stand with Ukraine Mar 31 '17 at 20:11
1 Answers
0
Presumably, you haven't actually defined the FillDataSet method.
I think you may have meant to use the SqlDataAdapter's Fill method. You can see a complete example of how to do that here: Direct method from SQL command text to DataSet
Community
- 1
- 1
EJoshuaS - Stand with Ukraine
- 11,977
- 56
- 49
- 78