MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Sub GetData() Dim ds As New DataSet Using da As New SqlClient.SqlDataAdapter("rsp_cc_clienttype", objConn) Dim myComm1 As New SqlCommand("rsp_cc_clienttype", objConn) myComm1.Parameters.Add("@startdate", SqlDbType.SmallDateTime, 6).Value = sdate myComm1.Parameters.Add("@enddate", SqlDbType.SmallDateTime, 6).Value = edate myComm1.CommandType = CommandType.StoredProcedure da.Fill(ds) myComm1.ExecuteNonQuery() 'fill clients With ddClient .Items.Clear() .DataSource = ds.Tables(0) .DataValueField = "clientid" .DataTextField = "clientname" .DataBind() End With If objConn.State <> ConnectionState.Closed Then objConn.Close() End If 'End Try End Using End Sub
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.