Well something is missing of me (again :P) and I need some help.. I am trying
to get files for my database and load it into comboBox. But for some reason I get systax
error.. As I mention into other post I am not familliar with VB so please check my code
and let me know where I mess up... Here is my code:::
Public Class Form2
Dim DatabaseOpenConnection As New SqlConnection("Server=localhost;User Id=root;Password=root;Database=test")
Dim da As SqlDataAdapter("SELECT * FROM products", DatabaseOpenConnection)
'' I get syntax error here... says ''Arrays bound cannot appear in type specifiers
Dim ds As New DataSet()
da.Fill(ds, "products")
SQLConnection.Close()
Dim oTable As DataTable
oTable = ds.Tables("products")
Dim oFile As DataRow
For Each oFile In oTable.Rows
ComboBox2.Items.Add(oFile.Item("products"))
Next
End Sub