Look like you will be getting " Keyword not supported: 'provider'. " error since the application is using SqlConnection class to access the Microsoft Access database. It should utilize the OleDbConnection class.
Here how the code should look like.
Private Sub getData(ByVal user As String)
Dim dt As New DataTable()
Dim connection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Mohammed\Documents\Database1.mdb")
connection.Open()
Dim sqlCmd As New OleDbCommand("SELECT * from TABLE1 WHERE UserID = @username", connection)
Dim sqlDa As New OleDbDataAdapter(sqlCmd)
sqlCmd.Parameters.AddWithValue("@username", user)
sqlDa.Fill(dt)
If dt.Rows.Count > 0 Then
TextBox1.Text = dt.Rows(0)("ID").ToString
TextBox2.Text = dt.Rows(0)("PhoneNumber").ToString
Label1.Text = dt.Rows(0)("ID").ToString
Label2.Text = dt.Rows(0)("PhoneNumber").ToString
End If
connection.Close()
End Sub
By the way is the SqlDataSource on the .aspx redundant?