PC Review


Reply
Thread Tools Rate Thread

Cannot change column name in Excel's MS Query tool

 
 
=?Utf-8?B?TmVhbGw=?=
Guest
Posts: n/a
 
      15th Sep 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Change a Text Column to Yes/No Column in a Query KARL DEWEY Microsoft Access Queries 0 31st Jul 2009 02:52 AM
where do my SQL querries get stored in the MS query tool in excel? =?Utf-8?B?TmVhbGw=?= Microsoft Excel Programming 1 27th Oct 2007 09:57 AM
Excel 2007 Query tool bug =?Utf-8?B?YmFybmFiZWw=?= Microsoft Excel Crashes 0 3rd Aug 2007 02:36 AM
exporting a dynamic query into excel sheet with change column header chetna kalra via AccessMonster.com Microsoft Access External Data 0 6th Apr 2005 01:15 PM
Re: How do I change the width of a column in an Excel column chart? Debra Dalgleish Microsoft Excel Charting 0 8th Sep 2004 10:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:53 PM.