Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Cannot change column name in Excel's MS Query tool

I am using this 'tool' to review my sql query, in my select statement I am
using this

CR.ID, CR.CAT, CR.SEV, substr(cr.pr,1,5), CR.AP, USERS.FULLNAME

when get my my result in the MS SQL tool the result shows
"substr(cr.pr,1,5)" as a column header, when I move the query to excel the
column header is "4" which makes sense as it representing the 4th query.

My problem is I want to rename the column header in my result something that
I cannot seem to do even using the MS SQL query tool which says I should use
this
substr(cr.pr,1,5) AS 'PR Number',"

Can someone help me with a workaround, I can't seem to use that syntax at
all to change the column header in excel when my results are brought back.



--
Neall
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 do I expand formula down a column when query results change? ssciarrino Excel Discussion (Misc queries) 4 April 17th 09 01:26 AM
Excel's camera tool Camera Shy Excel Discussion (Misc queries) 4 March 1st 07 02:03 AM
QUERY: Excel's SaveAs so slow.. KevinGPO Excel Worksheet Functions 2 February 15th 06 03:43 PM
QUERY: Excel's SaveAs so slow.. KevinGPO Excel Programming 2 February 15th 06 03:43 PM
Excel's draw tool to create a Macro Button JulieD Excel Programming 1 August 5th 04 06:26 PM


All times are GMT +1. The time now is 10:00 PM.

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

About Us

"It's about Microsoft Excel"