Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Formatting

Status
Not open for further replies.

Ajwebb

MIS
Jul 31, 2003
153
GB
Hi All,

Is it Possible to do Conditional Formatting on a Query.

Thanks

Ant
 
Formatting of what? A form, report, and what on that form or report? Please be more descriptive, and possibly post any code you might already have tried.

Jim DeGeorge [wavey]
 
Formatting of a Report.

I have a report with Five Fields:-

StudentName, Scheme, TypeReview, PlannedDate, ActualDate

What i would like is if the Planned Date is Less than the Current Date, It to be made Red and Bold.

Thanks

Ant
 
Hi Jim,

No i'm not a Student, However I work for a training organisation in Wales (UK). I'm designing a Database for my Company that will allow them to Track Learners whilst they are on training scheme with us.

Ant
 
Ok. On the report's OnCurrent property, put this code:

If PlannedDate < Date Then
Me.PlannedDate.Font = 255
Endif

Hope this helps.

Jim DeGeorge [wavey]
 
Hi Jim,

Couldn't find the OnCurrent of the Report, However found conditional formatting under the Format Tab.

However I have used something Similar now on my forms, so thanks again.

Do you know if it is possible to Conditional Format a Query?

Ant
 
If you have the report open in DESIGN VIEW, the property list to the right should appear. Scroll down until you see ON CURRENT. Then, click on the ... to the right of that field.

Then, paste in the code I gave you above.

I don't know what you mean by conditions in a query. Please elaborate.

Jim DeGeorge [wavey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top