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
144 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

821 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