Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Arvi Laanemets
 
Posts: n/a
Default Excel2000: Calculated field name in ODBC Query

Hi

I have a workbook with several ODBC queries from another Excel workbook. The
queries differ by WHERE condition. In general, query syntaxes are like
SELECT a.field1, a.field2, SUM(a.field3) AS 'Field3'
FORM `Drive:\Path\SourceWorkbook`.SourceTable a
WHERE ....
GROUP BY a.field1, a.field2
ORDER BY a.field2, a.field1;

My problem is, that for some queries AS fieldname part is working, i.e. in
return table the header for 3rd column is 'Field3', and in query window I
can activate from menu RecordsEditColumn, for some of then sometimes isn't.
When I close query window for such query, the query syntax changes to
SELECT a.field1, a.field2, SUM(a.field3)
FORM `Drive:\Path\SourceWorkbook`.SourceTable a
WHERE ....
GROUP BY a.field1, a.field2
ORDER BY a.field2, a.field1;

in return table the column header will be Expr####, and RecordsEditColumn
in query wizard menu is disabled.

Has someone some plausable explanation for such behaviour. And how to mend
it?


Thanks in advance!
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create a calculated field from another calculated field? Eldon Excel Discussion (Misc queries) 0 January 9th 06 03:40 PM
Calculated fields in pivot tables Nigel Drinkwater Excel Worksheet Functions 5 January 3rd 06 05:41 PM
Using a MIN, MAX formula on a calculated field in a pivot table fhaberland Excel Discussion (Misc queries) 0 August 2nd 05 07:47 PM
Excel2000 ODBC query oddity Arvi Laanemets Excel Discussion (Misc queries) 0 March 10th 05 06:35 AM
Winn98SE, Excel2000: ODBC query opens the source workbook Arvi Laanemets Excel Discussion (Misc queries) 9 March 10th 05 06:32 AM


All times are GMT +1. The time now is 07:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"