Solved

How to display the data to the data report where the data is after certain process, but not directly from database???

Posted on 2002-04-02
3
141 Views
Last Modified: 2010-05-02
I need to display the data to data report after certain process, I retrieve the recordset base on a sql query, but from the retrieved recordset, i need to find out the number of occurence of certain field's data, like name, so how to display data after all these process??

can anyone tell me???
0
Comment
Question by:jescho
  • 2
3 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6915377
Post a sample of your recordset and the output desired. Do you want to display the output using MS Data Report?

Anthony
0
 

Author Comment

by:jescho
ID: 6916866
for example, the recordset contain :
Name       Subject
AAA         English
AAA         Chinese
BBB         English
BBB         Chinese
BBB         Math

my desired output in the report base on the above example will be :
Name        No Of Course Study
AAA          2
BBB          3

however, if i bound the report textbox control to the name field, it will display all the record name available in the database table. so do you know how??? the report that i use is the data report in VB, i dont know is that MS report..cos i am new to data report and those reference didnt teach much on report.
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 100 total points
ID: 6919762
Bind the Data Report to the following SQL statement:

Select Name,
       Count(*) As CourseCount
From Table1
Group by Name

Also, take a look at the EE Guidelines (http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp) regarding grading questions. A "B" grade may be the default, but it is by no means the only one available.

Anthony
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now