Hi,
Umm..you don't have to export the new column... For example,
SELECT test.city, test.num
FROM test
WHERE (((test.num3) Is Not Null))
GROUP BY test.city, test.num;
In this query, columns [city] and [num] are retrieved by the query (and
possibly exported to excel). Note that there is a where clause for the
[num3] column, which determines which records to select/export. Since [num3]
is only in the WHERE clause, it will factor into the results but not
retrieved/visible/exported.
Hope this helps,
geebee
> Hi,
>
[quoted text clipped - 15 lines]
> > > column, so that if you export to an excel file it only adds the columns you
> > > need from the query?
KARL DEWEY - 29 Sep 2006 20:15 GMT
Add to the SELECT satatement like this --
SELECT test.city, test.num, "XX" as [My New Column1], 0 as [My New Column2],
Null as [My New Column3]
> Hi,
>
[quoted text clipped - 33 lines]
> > > > column, so that if you export to an excel file it only adds the columns you
> > > > need from the query?