SQL.REQUEST Returns Single Cell

F

Four_legs_good

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_SERVER;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
 
K

K Dales

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top