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 question


Hi,
This is a really easy question, I just don't know what I am doing.
am using the "=sql.request" formula to import data from an acces
spreadsheet. Everything works fine until I have to import somethin
that is in a column in a microsoft access table that has a name tha
contains a space. Here is an example:
this equation works fine:

=SQL.REQUEST("DSN=MS Acces
Database;DBQ=F:\DATABASE\HSN\hsn.mdb",,,"SELECT Fax FROM ConsultantMai
WHERE (ConsultantMainID=9)")

this one does not (i have bolded the part that makes it not work)

=SQL.REQUEST("DSN=MS Acces
Database;DBQ=F:\DATABASE\HSN\hsn.mdb",,,"SELECT *Prof Limit *FRO
ConsultantMain WHERE (ConsultantMainID=9)")

The reason it does not work is because the column heading "Prof Limit
contains a space. If I change the column name to "ProfLimit" and the
input that into the equation, it works fine. However, I would rathe
not do that. Is there some way I can edit the equation to fix this?

Thanks so much!

-Stev

--
thephoenix1
-----------------------------------------------------------------------
thephoenix12's Profile: http://www.excelforum.com/member.php...fo&userid=2433
View this thread: http://www.excelforum.com/showthread.php?threadid=55931

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
sql.request teepee[_4_] Excel Programming 2 December 30th 05 01:34 PM
Request help Shetty Excel Programming 2 November 17th 05 10:38 AM
HELP REQUEST:Golf Scoresheet question Monte Comeau Excel Worksheet Functions 3 May 9th 05 08:17 PM
sql.request Nikon Excel Worksheet Functions 1 November 10th 04 12:05 PM
2nd request Christy[_2_] Excel Programming 0 October 1st 03 01:32 AM


All times are GMT +1. The time now is 01:46 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"