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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 50
Access 2003, my txt file export is running backwards 4 46
using web browser with BING 40 110
how to know if my Checkbox is True in VB6.0? 9 36
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

932 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

11 Experts available now in Live!

Get 1:1 Help Now