This is a view in SQL Server, why is not working in Access DB?
SELECT o.IdOrden, o.FechaOrden, o.NumeroDeOrden, p.RazonSocial, SUM(CASE WHEN r.idtipo = 1 THEN