Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Detail section in Data reports

Posted on 2002-07-15
6
Medium Priority
?
149 Views
Last Modified: 2010-05-02
How can I add for each record (that shown in detail section) some text .

For example :
-----------Header Section----------------
Num       Subject      Grade
rec    
-----------Detail Section----------------
1           History      90   TEXT<--  
2           English      60   TEXT<--
3           Mathematics  80   TEXT<--


If grade>85 I want to write near it "Very Goog"
                       (in the TEXT label)
elseif
 I want to write near it "Very Bad"
                       (in the TEXT label)
endif]

How can I do this ?Please help me .
0
Comment
Question by:Inga_dusha
[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
  • 3
  • 3
6 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7154312
You will need to add this text to your Recordset.  Post your SQL statement and I can amend as needed to add the needed columns.

Anthony
0
 

Author Comment

by:Inga_dusha
ID: 7154352
Its' mean that I need to add column to the table itself?
And if I don't want to make changes to the table?


For example sSQl= "SELECT * From Grades"

Table Grades:
        ID
        Subject
        Grade

0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7154486
Not to the table, but to the recordset.  What you need is a calculated column.  Is this Access or SQL Server?

Anthony

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Inga_dusha
ID: 7154600
Access ,

can you help me ,because I don't know how to do this .
Thanks.
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 200 total points
ID: 7154691
Change your Select statement to (untested):
SELECT *, IIF(Grade>85, 'Very Good', 'Very Bad') As GradeText From Grades

Than add the GradeText to your report like you would any other column.

Anthony
0
 

Author Comment

by:Inga_dusha
ID: 7155006
Thanks a lot !!!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Suggested Courses

636 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