Solved

Detail section in Data reports

Posted on 2002-07-15
6
142 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
  • 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

758 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

18 Experts available now in Live!

Get 1:1 Help Now