[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.4

SQL.REQUEST

Asked by AndrewMcLaughlin in Microsoft Excel Spreadsheet Software

Tags: excel

Hi,

I have a few questions around the SQL request method:

I have  cell with list validation - call G3.  The list is called instance and contains 40 values like UK1, UK2,NA1,FR1,NA1 etc ( these are all SUN_DB's - see below)

I have a named range called ACCOUNTS which has two fields which I am using in a VLOOKUP

1) A concatenated field: SUN_DB & ACCNT_NAME
2) ACCNT-NAME


The contents of ACCOUNTS needs to relect the users choice in cell G3.  I need that cell choice to trigger an appropriate SQL.Request query.  The query text of which will always be the same - looks like that below - I just need to modify so that it returns the only the concatenated field and the ACCNT_NAME


SELECT SSRFACC.SUN_DB, SSRFACC.ACCNT_CODE, SSRFACC.ACCNT_NAME, SSRFACC.SUSPEND
FROM SSRFACC
WHERE (((SSRFACC.ACCNT_CODE) Not Like "6%") AND ((SSRFACC.SUSPEND) Not Like "C"));


However there are x number of Connection_Strings:

DSN=EURSUN101.CAMSUN;UID=Viewer;PWD=Rodeo;Database=CAMSUN  - will return an ACCOUNTS table for all SUN_DB's beginning UK and IE

DSN=EURSUN101.FRASUN;UID=Viewer;PWD=Rodeo;Database=CAMSUN  - will return an ACCOUNTS table for all SUN_DB's beginning DE and CZ

DSN=USASUN101.USASUN;UID=Viewer;PWD=Rodeo;Database=CAMSUN  - will return an ACCOUNTS table for all SUN_DB's beginning US


Whats the best way of making this work  - it needs to be fairly robust because there will be quite a few users all of whom will have the data sources named in the same way as I do above - they are al system data sources.



Specific Question:
I have the following formula in cell B12 - can anybody tell me why when I press enter all I get as the result is the column heading SUN_DB in cell B12 - why doesn't it show all the results.


SQL.REQUEST("DSN=EURSUN101.CAMSUN;UID=Viewer;PWD=Rodeo;Database=CAMSUN",B16:C88,2,"SELECT SSRFACC.SUN_DB,SSRFACC.ACCNT_CODE FROM SSRFACC",TRUE)

http://www.experts-exchange.com/Applications/MS_Office/Excel/Q_21133627.html
[+][-]09/24/04 07:47 AM, ID: 12143746Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: excel
Sign Up Now!
Solution Provided By: WATYF
Participating Experts: 3
Solution Grade: A
 
[+][-]09/17/04 06:22 AM, ID: 12084137Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/17/04 06:57 AM, ID: 12084494Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/17/04 07:01 AM, ID: 12084533Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/17/04 07:09 AM, ID: 12084614Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/17/04 07:18 AM, ID: 12084685Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/17/04 07:37 AM, ID: 12084893Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/17/04 09:07 AM, ID: 12086015Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/19/04 10:01 PM, ID: 12099361Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/20/04 09:23 AM, ID: 12103586Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/20/04 10:40 AM, ID: 12104474Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/20/04 10:43 AM, ID: 12104517Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/21/04 02:00 AM, ID: 12110241Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/21/04 03:19 AM, ID: 12110585Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/21/04 03:33 AM, ID: 12110635Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/21/04 06:28 AM, ID: 12111884Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/21/04 07:12 AM, ID: 12112383Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/21/04 10:36 AM, ID: 12114739Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/24/04 02:32 AM, ID: 12141263Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12/16/04 08:31 AM, ID: 12842393Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12/20/04 07:16 AM, ID: 12866915Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92