Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SQL.REQUEST Returns Single Cell

G'day,

Beginner question...

I have the following command in cell A1 of my EXCEL 2002 worksheet

=SQL.REQUEST("DSN=db_name;UID=db_UID;SERVER=db_SER VER;PWD=db_PWD",A1:B1000,4,"SELECT
SITE.SITE_ID, SITE.NAME FROM SITE",TRUE)

Seems to access information nicely.... but only returns first entry in
database and only in cell A1 (Site_ID) - Nothing in cell B1 which
should be Site_Name)


Assistance greatly appriciated...

Cheers,
Four Legs Good

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default SQL.REQUEST Returns Single Cell

Most likely you did not enter it as an array formula; if you did not do this
then re-enter the formula in the cell but use Ctrl-Shift-Enter instead of
just Enter to enter it into the cell: that is the standard way to tell Excel
you are using an array formula with results that span more than one cell.

"Four_legs_good" wrote:

G'day,

Beginner question...

I have the following command in cell A1 of my EXCEL 2002 worksheet

=SQL.REQUEST("DSN=db_name;UID=db_UID;SERVER=db_SER VER;PWD=db_PWD",A1:B1000,4,"SELECT
SITE.SITE_ID, SITE.NAME FROM SITE",TRUE)

Seems to access information nicely.... but only returns first entry in
database and only in cell A1 (Site_ID) - Nothing in cell B1 which
should be Site_Name)


Assistance greatly appriciated...

Cheers,
Four Legs Good


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
From single cell variables to a single column serie noyau New Users to Excel 1 December 22nd 06 06:43 AM
function that returns a list to a single cell AdamMCW Excel Discussion (Misc queries) 2 October 6th 05 09:55 PM
SQL.REQUEST Returns Single Cell Glenn1203 Excel Programming 4 March 28th 05 07:27 PM
VBA for the case when web request returns nothing. Peter Jamieson[_2_] Excel Programming 0 July 19th 04 04:58 AM
Range.Find returns cell outside of range when range set to single cell Frank Jones Excel Programming 12 June 10th 04 04:22 AM


All times are GMT +1. The time now is 12:31 AM.

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"