Protected Sub showallButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles showallButton.Click
' Dim sql As String = "SELECT * FROM tbl_Providers"
Dim sql As String = "SELECT [First Name] AS First_Name, [Last Name] AS Last_Name, [Specialty], [Specialty 2],[Address], [Address2], [City], [State], [Zip], [Phone], [Fax] FROM [tbl_Providers] ORDER BY [First Name] Asc "
AccessDataSource2.SelectCommand = sql
ListView1.DataBind()
ListView1.Visible = True
End Sub
|