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
145 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

738 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