Operator '&' is not defined for string "SELECT DeptName FROM Department" and type 'DataRowView'.
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged cmd = New OleDbCommand("SELECT DeptName FROM Departments inner JOIN Faculties ON Faculties.ID = Departments.FacID where FacID='" & ListBox1.SelectedValue & "'", conn) Dim daa As New OleDbDataAdapter(cmd) Dim dtt As New DataTable daa.Fill(dtt) dgv.DataSource = dtt End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)