Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
External data source / MS Query Command Text
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Allen_N  
View profile   Translate to Translated (View Original)
 More options 6 Feb 2007, 00:04
Newsgroups: microsoft.public.excel.querydao
From: Allen_N <All...@discussions.microsoft.com>
Date: Mon, 5 Feb 2007 16:04:01 -0800
Local: Tues 6 Feb 2007 00:04
Subject: External data source / MS Query Command Text
When I Refresh the data source (which is a view in an Access ADP) the columns
are returned to my spreadsheet in the wrong order.

By default, the Command Text window contains simply:

   "Availability"."dbo"."vwShortagesByItem"

I tried changing Command Type to 'SQL' and entering:

   SELECT  ItemNo, Description, Commodity_Group, Nat_Rank, Avg_Cost,
   Net_Ordered, Net_Supplied, Net_Shortage, Occurences, Branches,
   Customers  FROM  Availability.dbo.vwShortagesByItem

but the columns are returned in the order:

   ItemNo, Commodity_Group, Nat_Rank, Avg_Cost, Net_Ordered, Net_Supplied,
   Net_Shortage, Occurences, Branches, Customers, Description

Thanks!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dick Kusleika  
View profile   Translate to Translated (View Original)
 More options 8 Mar 2007, 21:12
Newsgroups: microsoft.public.excel.querydao
From: Dick Kusleika <dkusle...@gmail.com>
Date: Thu, 08 Mar 2007 15:12:51 -0600
Local: Thurs 8 Mar 2007 21:12
Subject: Re: External data source / MS Query Command Text
On Mon, 5 Feb 2007 16:04:01 -0800, Allen_N

Allen:  In Range Properties, uncheck the Preserve Columns check box.
See here

http://www.dailydoseofexcel.com/archives/2004/06/02/add-new-column-to...

--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google