SQL1 = "INSERT INTO REPORTE ("
'SQL1 = SQL1 & " Gestion, "
'SQL1 = SQL1 & " Fecha, "
'SQL1 = SQL1 & " Dias_Habiles, "
'SQL1 = SQL1 & " Mes, "
SQL1 = SQL1 & " Oficina, "
SQL1 = SQL1 & " Servicio, "
SQL1 = SQL1 & " Remesados, "
SQL1 = SQL1 & " Recibidos, "
SQL1 = SQL1 & " No_Entregados, "
SQL1 = SQL1 & " Faltante, "
SQL1 = SQL1 & " Equivocados, "
SQL1 = SQL1 & " Cantidad "
SQL1 = SQL1 & ") "
SQL1 = SQL1 & " SELECT"
'SQL1 = SQL1 & " Gestion, "
'SQL1 = SQL1 & " Fecha, "
'SQL1 = SQL1 & " Dias_Habiles, "
'SQL1 = SQL1 & " Mes, "
SQL1 = SQL1 & " oficina,"
SQL1 = SQL1 & " servicio,"
SQL1 = SQL1 & " SUM(VAL(remesados)) AS remesados1,"
SQL1 = SQL1 & " SUM(VAL(recibidos)) AS recibidos1,"
SQL1 = SQL1 & " SUM(VAL(no_entregados)) AS no_entregados1,"
SQL1 = SQL1 & " SUM(VAL(faltante)) AS faltante1, "
SQL1 = SQL1 & " SUM(VAL(equivocados)) AS equivocados1, "
SQL1 = SQL1 & " SUM(VAL(cantidad)) AS cantidad1 "
SQL1 = SQL1 & "FROM Masivos "
SQL1 = SQL1 & "GROUP BY oficina, servicio;"