Link to home
Start Free TrialLog in
Avatar of SparkyP
SparkyP

asked on

Change output of Access Report

We run an Access Database for equipment maintenance. Our engineers have a "Maintenance" form with 30 combo boxes who's row source is a table "Condition". The table has two columns "Score" as an interger and "Condition" as a varchar. In the form I have chosen the Score column as the bound field, which enables me to carry out calculations. The display on the form is the "Condition" column.

To summarise:

The table below is for the row source, with the score being saved in the Maintenance table, but the Condition being displayed on the engineers form.

Condition                           Score

Dangerous              1
Requires Attention              2
Poor                                3
Fair                                4
Good                                5
Very Good              6
Excellent                                7
N/A                                0

This format is repeated 30 times on the form for the various maintenance checks. My idea is that I can give an overall condition report, by averaging the scores.

My Problem is that the report for the maintenance is obviously displaying the score, rather than the related condition. Is there a way I can change the report to reflect the condition.
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

All you have to do is pull in the "condition" field in to the reports Recordsource.

But another approach would be to look it up...
Add a textbox to the report (txtCondition)
Set the control source to: Dlookup("Condition","YourConditionTableName", "Score= & YourScoreControlName )
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SparkyP
SparkyP

ASKER

Many Thanks Boag

Two Answers for the price of one, hey that's value.