Connecting Tech Pros Worldwide Help | Site Map

FLAGGING SYSTEM

  #1  
Old November 12th, 2005, 07:10 PM
Stuart Masters
Guest
 
Posts: n/a
Hope someone out there can help.

I have created a database which holds clients information of
assessments they have had. I have also created a simple query which
will let me know that that person is due another assessment in 2
months time:

Month(DateAdd("m",2,Date()))

However, I would also like the query to tell me people due in 3 months
time but place there data in another colour, i.e., red. Is this
possible?

Many thanks to anyone who can help

stu
  #2  
Old November 12th, 2005, 07:10 PM
Scott McDaniel
Guest
 
Posts: n/a

re: FLAGGING SYSTEM


You didn't indicate what version of Access you're using, but if it's Access
2000 or greater look into Conditional Formatting ... this allows you to set
certain colors and such of your form controls dependant on the
value/conditions of the underlying data.

--
Scott McDaniel
CS Computer Software
Visual Basic - Access - Sql Server - ASP
"Stuart Masters" <stuart.masters@pcs-tr.swest.nhs.uk> wrote in message
news:60fe95cc.0401160329.73cc3c35@posting.google.c om...[color=blue]
> Hope someone out there can help.
>
> I have created a database which holds clients information of
> assessments they have had. I have also created a simple query which
> will let me know that that person is due another assessment in 2
> months time:
>
> Month(DateAdd("m",2,Date()))
>
> However, I would also like the query to tell me people due in 3 months
> time but place there data in another colour, i.e., red. Is this
> possible?
>
> Many thanks to anyone who can help
>
> stu[/color]


  #3  
Old November 12th, 2005, 07:10 PM
Stuart Masters
Guest
 
Posts: n/a

re: FLAGGING SYSTEM


Sorry

I'm using Access 97


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4  
Old November 12th, 2005, 07:11 PM
Peter Miller
Guest
 
Posts: n/a

re: FLAGGING SYSTEM



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
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
DBD::DB2 not finding .so file on system startup Larry answers 4 January 8th, 2006 04:05 PM
Concurreny help - flagging a record "being used" in client server environment vanvee@comcast.net answers 3 November 21st, 2005 08:57 AM
filtering and flagging a mailing list for 1 record per household Mark V. answers 3 November 12th, 2005 02:15 PM
Help. Dot Net keep flagging an error remdim WAYNEL answers 2 September 1st, 2005 11:45 PM