We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
cbbae.DataSource = employeelist("sales") Public Shared Function employeelist(ByVal Dept As String) Dim cbb As ComboBox = New ComboBox Dim dt As DataTable = New DataTable Using conn As New SqlConnection(myconnectionstring) Using cmd As New SqlCommand("APP_GetEmployeeList", conn) cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.AddWithValue("@department", Dept) Using da As New SqlDataAdapter(cmd) da.Fill(dt) With cbb .DataSource = dt .DisplayMember = "repcode" End With End Using End Using End Using Return cbb.DisplayMember End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|VB.net SQLCommandBuilder Insert New Records From DataGridView||3||30|
|Vb.net threads keep increasing||2||48|
|Need help converting bitmap to image in VB.Net||8||44|