I would like to change this code to call a stored procedure. Can someone show me what to change to make this happen? I left out the connection string but have that already.

Thanks!

Code:
            Dim conn As New SqlConnection()
            conn.ConnectionString = ConnString7
            Dim selectQuery1 As String = "SELECT field1, field2, field3 FROM Courses WHERE (Share = 'A') OR (Share = 'G' AND GroupNo = '" & GroupNo2 & "' AND GroupNo <> '') OR (Share = 'P' AND ProviderNo = '" & ProviderNo2 & "')"
            Dim adapter1 As New SqlDataAdapter(selectQuery1, conn)
            Dim dt1 As New DataTable()
            conn.Open()
            adapter1.Fill(dt1)
            conn.Close()
            gvCourses.DataSource = dt1