Make Your Microsoft Dynamics Investment Count & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.
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.
|Data organization issue||7||56|
|How to get a Powershell script to launch from Visual Studio||20||101|
|VB6 calling COM DLL written in Visual Studio 2003||6||57|
|Datagridview column resizing||8||28|
Join the community of 500,000 technology professionals and ask your questions.