On 16 Jan 2004 13:49:24 GMT, Stuart Masters
<stuart.masters@pcs-tr.swest.nhs.uk> wrote in
comp.databases.ms-access:
[color=blue]
>I'm using Access 97[/color]
To change the color of a column in Access 97 queries, just select the
column in the query designer and right click and choose properties,
then on the 'General' tab of the popup properties dialog, under
'Format', type
[color]X
where 'color' is the desired color and 'X' is the desired format. So,
if dates are being displayed, and you wanted the query to display
green text, you could type
[green]m/d/yy
for example.
This formats the entire column in the selected color. To format just
certain values, you could, for instance, set a flag column with a
calculated field (something along the lines of
isOverdue: [DueDate]<now()
then in the format field, use something like
"Ok";[red]"Late!"
This would flag, in red, the overdue rows, and leave the non-overdue
rows in black.
You get the picture.
Scott mentioned conditional formatting in forms in Access 200 and
later, but the conditional color formatting works in earlier versions
too, and works for queries directly, and not just forms/reports.
Peter Miller
__________________________________________________ __________
PK Solutions -- Data Recovery for Microsoft Access/Jet/SQL
Free quotes, Guaranteed lowest prices and best results
www.pksolutions.com 1.866.FILE.FIX 1.760.476.9051