Solved

Detail section in Data reports

Posted on 2002-07-15
6
146 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
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!

 

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
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…
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…

732 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