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.
Join the community of 500,000 technology professionals and ask your questions.