Guest_imported
New member
- Jan 1, 1970
- 0
apparantly, Access sorts results by the first column requested, yes? Not working for me when I use the first column as another subquery;
select (select sum(field1) from table1 where t1.tid=t2.t1id) as expr1, t2.name, t2.banana from table2 t2
as a very rough example.
is there a simple way of doing this? I've tried adding;
order by expr1 desc
which then prompts me for the value of expr1. If I use;
order by (select sum(field1) from table1 where t1.tid=t2.t1id)
and get a syntax error.
little help? gracias.
select (select sum(field1) from table1 where t1.tid=t2.t1id) as expr1, t2.name, t2.banana from table2 t2
as a very rough example.
is there a simple way of doing this? I've tried adding;
order by expr1 desc
which then prompts me for the value of expr1. If I use;
order by (select sum(field1) from table1 where t1.tid=t2.t1id)
and get a syntax error.
little help? gracias.