Advertisement

10.07.2008 at 05:41AM PDT, ID: 23793454
[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!

9.1

Can you combine two datasets that contain the exact same information in Vb.net (Windows Application)?

Asked by JohnnyBCJ in Microsoft Visual Basic.Net, Visual Basic Programming, Visual Studio

Tags: , ,

In an attempt to come up with a solution for my previous situation:
http://www.experts-exchange.com/Programming/Languages/SQL_Syntax/Q_23785540.html

I figured I am able to get the distinct column values (in this case, it would be the date 1/1/2008 and 1/2/2008) and I'm going to run an SQL query to sum(money1 to 7) in it.

For Example:
Customer Name           CustomerID          Date           Number           Money1           Money2,3,4...    Money7
'John Smith'                    1                     1/1/2008        1234                $10                 ...etc....              $15
'Joe Dawg'                     2                     1/1/2008        1235                $5                   ...etc....              $10
-Total Row Inserted Here -                                                                 $15                 ...etc....              $25

'Jennifer Smith'              3                     1/2/2008        1236                $20                 ...etc....               $5
'Jack Dawg'                    4                     1/2/2008        1237                $30                   ...etc....             $20
-Total Row Inserted Here -                                                                  $50                 ...etc....              $25

I currently have a 'For-Next' statement that allows me to query the sum of the records that I need to show (for example: Select sum(money1),sum(money2)...sum(money7) from table where date ='1/1/2008'. It puts the record into a dataset / table and shows it in the datagridview. Then it goes back again and runs the next statement (for example... Select sum(money1),sum(money2)...sum(money7) from table where date ='1/2/2008'). It then puts the results into a dataset / table and shows it in the datagridview. My problem is that it clearly removes the records that it contained the first time. Now it's only showing the info for 1/2/2008.

Is there a way to declare a dataset / adapter / table outside of the for-next loop and use it to combine into one datasource? Is there another way I can do this to have the one datagridview show a number of different SQL select statements (all containing 1 row each and having the exact same columns)?Start Free Trial
[+][-]10.07.2008 at 06:07AM PDT, ID: 22658945

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 06:36AM PDT, ID: 22659217

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 09:45AM PDT, ID: 22661183

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 09:55AM PDT, ID: 22661272

View this solution now by starting your 7-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: Microsoft Visual Basic.Net, Visual Basic Programming, Visual Studio
Tags: Microsoft, Visual Studio Professional, 2008
Sign Up Now!
Solution Provided By: mwvisa1
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10.07.2008 at 10:29AM PDT, ID: 22661554

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 10:36AM PDT, ID: 22661633

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 11:34AM PDT, ID: 22662158

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628