Conditional formatting database results

G

Grecian2008

Hello i have a table Club that looks thus

CREF ClubName
Exe Exeter
Tor Torquay
Ply Plymouth

etc....

when i query this with
SELECT * FROM Club

i want to to display every record in a different font colour and /or
background colour depending on the result. There may be upwards of 100
records in the club table.

How is this possible?

I am using Frontpage 2003, Access 2003 and most of my database work is done
using the DRW in Frontpage.

Thanks
 
G

Grecian2008

Hi Kathleen,

So if the db result is Exeter then 'Exeter' appears in red, if the result is
Torquay then 'Torquay appears in blue etc etc

thanks for your help.
 
K

Kathleen Anderson

G

Grecian2008

Yeah i do and i've just thought how i could do it.

Create a column called FontCode and adjust the code for the db result field
so it read

<font color="<%=FP_FieldLink(fp_rs,"FontColor")%>">

this would work?
 
G

Grecian2008

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top