<%
sSql = "SELECT DISTINCT(l.liga_cUbigeo), l.liga_vAbrev, l.liga_vOrden, l.liga_vCarpeta "
sSql = sSql & " FROM tbLiga l "
sSql = sSql & " INNER JOIN usuario u ON l.liga_cUbigeo = u.id_ubigeo"
sSql = sSql & " where l.liga_cEstado = 'A'"
sSql = sSql & " and liga_cUbigeo like 'OR%'"
sSql = sSql & " ORDER BY l.liga_vOrden"
Rs.Open sSql, Cn
If Rs.EOF Then
msg = "No Existen Ligas Cargadas. Verifique..."
Else
Do Until Rs.EOF
i = i + 1%>