[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!

8.0

asp multiple recordsets - store each in variable?

Asked by WebGirlCrissy in Active Server Pages (ASP), VB Database Programming, Access Coding/Macros

Tags: asp, access db

I'm in the process of making a dynamic data map.  I've successfully pulled in data I need for one state however I need to do all 50 states, I know there's a cleaner way than doing 50+ recordsets, but cant seem to figure that out.  I'm running two queries per state (acquirers & sellers) -- I also need to put the query results in a variable to place within my JS popups instead of the static data. Here's the current code I have for one state (Oregon). And here's the link where you can see what's going on.  Again, the current popup data is 'static' the top of the page is showing the pulled data from the access db... code is below as well...hoping someone can steer me in the right direction here...Thanks!!http://www.morrisseygoodale.com/newsroom/mapmonthly/index.asp
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
<%  strSQL = "SELECT [%$##@_Alias].Cat, [%$##@_Alias].State, Count(*) AS Expr1 FROM [select Acquiror as Cat, AcquirorState as State FROM 2007Data]. AS [%$##@_Alias] WHERE ((([%$##@_Alias].State)='OR')) GROUP BY [%$##@_Alias].Cat, [%$##@_Alias].State;"
 
    Set objRS = Server.CreateObject ("ADODB.Recordset")
   	objRS.Open strSQL, ODBC_CNCT%>
	<% if objrs.eof = false then
	response.write "ACQUIRERS" %><br />
	<%Do While Not objRS.EOF %>
<%=objRS("cat")%><br />
<%objRS.movenext
Loop	
   objRS.Close
    Set objRS = Nothing 
	else
	response.write "ACQUIRERS(0)"
 end if%>
 <br />
 <%  strSQL = "SELECT [%$##@_Alias].Cat, [%$##@_Alias].State, Count(*) AS Expr1 FROM [select Seller as Cat, SellerState as State FROM 2007Data]. AS [%$##@_Alias] WHERE ((([%$##@_Alias].State)='OR')) GROUP BY [%$##@_Alias].Cat, [%$##@_Alias].State;"
 
    Set objRS = Server.CreateObject ("ADODB.Recordset")
   	objRS.Open strSQL, ODBC_CNCT%>
	<% if objrs.eof = false then
	response.write "SELLERS" %><br />
	<%Do While Not objRS.EOF
	dim count
	count = objRS("Expr1") 
	if count > 1 then %><%=objRS("cat")%> (<%=count%>) <%else%> <%=objRS("cat")%> <%  end if %>
<br />
<% 
objRS.movenext
Loop	
   objRS.Close
    Set objRS = Nothing 
	else
	response.write "SELLERS(0)"
 end if%>
[+][-]07/31/09 07:57 AM, ID: 24989344Accepted 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

Zones: Active Server Pages (ASP), VB Database Programming, Access Coding/Macros
Tags: asp, access db
Sign Up Now!
Solution Provided By: saoirse1916
Participating Experts: 1
Solution Grade: A
 
[+][-]07/28/09 12:29 PM, ID: 24964249Expert 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.

 
[+][-]07/29/09 09:42 AM, ID: 24972007Author 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.

 
[+][-]07/29/09 11:01 AM, ID: 24972801Author 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.

 
[+][-]07/29/09 02:14 PM, ID: 24974771Expert 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.

 
[+][-]07/29/09 02:42 PM, ID: 24975013Author 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.

 
[+][-]07/30/09 07:16 AM, ID: 24980035Expert 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.

 
[+][-]07/30/09 10:03 AM, ID: 24981932Author 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.

 
[+][-]07/30/09 11:21 AM, ID: 24982826Author 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.

 
[+][-]07/30/09 02:05 PM, ID: 24984395Author 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.

 
[+][-]07/30/09 02:53 PM, ID: 24984755Expert 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.

 
[+][-]07/30/09 03:02 PM, ID: 24984802Expert 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.

 
[+][-]07/30/09 04:28 PM, ID: 24985272Author 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.

 
[+][-]07/31/09 07:14 AM, ID: 24988947Expert 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.

 
[+][-]07/31/09 07:16 AM, ID: 24988968Expert 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.

 
[+][-]07/31/09 07:26 AM, ID: 24989056Author 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.

 
[+][-]07/31/09 07:27 AM, ID: 24989067Author 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.

 
[+][-]07/31/09 07:53 AM, ID: 24989311Expert 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.

 
[+][-]07/31/09 10:49 AM, ID: 24990944Author 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.

 
[+][-]07/31/09 12:39 PM, ID: 24991785Expert 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.

 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20090701_SELECT_ZONES