tmurray22
asked on
Changing Text color based on value of query
I would like to have my results page display the value of the "status" column
with the color of the value.
Example: "status" can be red. yellow or green.
If the "status" is yellow I would like it to display the yellow value in bold yellow text.
with the color of the value.
Example: "status" can be red. yellow or green.
If the "status" is yellow I would like it to display the yellow value in bold yellow text.
In your database results display page switch to html view and find
<!--#include file="_fpclass/fpdbrgn1.in c"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="56121" -->
Immediately after this code enter
<%
varStatus = fp_rs("Status")
If varStatus = "red" OR varStatus = "Red" Then
varFontColor = "FF0000"
varBstart = "<b>"
varBend = "</b>"
Elseif varStatus = "yellow" OR varStatus = "Yellow" Then
varFontColor = "FFFF00"
varBstart = "<b>"
varBend = "</b>"
Elseif varStatus = "green" OR varStatus = "Green" Then
varFontColor = "00FF00"
varBstart = "<b>"
varBend = "</b>"
Else
varFontColor = ""
varBstart = ""
varBend = ""
End if
%>
In the line where you display you results you will find something like:
<!--webbot bot="DatabaseResultColumn" s-columnnames="ID,Name,Mod ified,CDDV DClientJob " s-column="Name" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Name <font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"N ame")%><!- -webbot bot="DatabaseResultColumn" endspan i-CheckSum="3900" -->
This is the webbot results for displaying your field information
bracket this information with
<font color="<%=varFontColor%>"> <%=varBsta rt%>...... ..<%=varBe nd%></font >
RCMB
<!--#include file="_fpclass/fpdbrgn1.in
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="56121" -->
Immediately after this code enter
<%
varStatus = fp_rs("Status")
If varStatus = "red" OR varStatus = "Red" Then
varFontColor = "FF0000"
varBstart = "<b>"
varBend = "</b>"
Elseif varStatus = "yellow" OR varStatus = "Yellow" Then
varFontColor = "FFFF00"
varBstart = "<b>"
varBend = "</b>"
Elseif varStatus = "green" OR varStatus = "Green" Then
varFontColor = "00FF00"
varBstart = "<b>"
varBend = "</b>"
Else
varFontColor = ""
varBstart = ""
varBend = ""
End if
%>
In the line where you display you results you will find something like:
<!--webbot bot="DatabaseResultColumn"
This is the webbot results for displaying your field information
bracket this information with
<font color="<%=varFontColor%>">
RCMB
ASKER
RCMB
It isn't working, Not sure I Bracketed the information you supplied correctly. I'm not getting any errors just not the color change.
Here is my code
<html>
<head>
<% ' FP_ASP -- ASP Automatically generated by a Frontpage Component. Do not Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>SystemRelease</titl e>
</head>
<body>
<p align="center"><img border="0" src="susheader.jpg" width="614" height="111"></p>
<table width="100%" border="1">
<thead>
<tr>
<th ALIGN="LEFT">UPDATE</th>
<th ALIGN="LEFT"><b>SystemRele ase</b></t h>
<th ALIGN="LEFT"><b>BuildStatu s</b></th>
<th ALIGN="LEFT"><b>GatingPtrs </b></th>
<th ALIGN="LEFT"><b>CurrentBui ldNum</b>< /th>
<th ALIGN="LEFT"><b>NextBuildN um</b></th >
<th ALIGN="LEFT"><b>PreviousGA Build</b>< /th>
<th ALIGN="LEFT"><b>Comments</ b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-columntypes="3,202,202,2 02,202,202 ,202,202" s-dataconnection="Database 6" b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE" s-recordsource="SUtable" s-displaycolumns="ReleaseI D,SystemRe lease,Buil dStatus,Ga tingPtrs,C urrentBuil dNum,NextB uildNum,Pr eviousGABu ild,Commen ts" s-criteria s-order s-sql="SELECT * FROM SUtable" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields s-norecordsfound="No records returned." i-maxrecords="256" i-groupsize="0" botid="0" u-dblib="_fpclass/fpdblib. inc" u-dbrgn1="_fpclass/fpdbrgn 1.inc" u-dbrgn2="_fpclass/fpdbrgn 2.inc" tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" ; width="100%"> <font color="#000000"& gt;This is the start of a Database Results region.</font></t d></ tr>" startspan --><!--#include file="_fpclass/fpdblib.inc "-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM SUtable"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=8 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="Database6"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&ReleaseID=3 &SystemRel ease=202&B uildStatus =202&Gatin gPtrs=202& CurrentBui ldNum=202& NextBuildN um=202&Pre viousGABui ld=202&Com ments=202& "
fp_iDisplayCols=8
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.in c"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="13228" --><tr>
<%
varStatus = fp_rs("BuildStatus")
If varStatus = "red" OR varStatus = "Red" Then
varFontColor = "FF0000"
varBstart = "<b>"
varBend = "</b>"
Elseif varStatus = "yellow" OR varStatus = "Yellow" Then
varFontColor = "FFFF00"
varBstart = "<b>"
varBend = "</b>"
Elseif varStatus = "green" OR varStatus = "Green" Then
varFontColor = "00FF00"
varBstart = "<b>"
varBend = "</b>"
Else
varFontColor = ""
varBstart = ""
varBend = ""
End if
%>
<td>
<p align="center">
<a href="suedit.asp?ReleaseID =<%=FP_Fie ldURL(fp_r s,"Release ID")%>">Ed it</a></td >
<td>
<font color=<%=varFontColor%>">< %=varBstar t%></font> <!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="SystemRelease" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Syst emRelease& lt;font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"S ystemRelea se")%><!-- webbot bot="DatabaseResultColumn" endspan i-checksum="36759" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="BuildStatus" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Buil dStatus< ;font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"B uildStatus ")%><!--we bbot bot="DatabaseResultColumn" endspan i-checksum="32721" --></font></p>
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="GatingPtrs" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Gati ngPtrs< font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"G atingPtrs" )%><!--web bot bot="DatabaseResultColumn" endspan i-checksum="29459" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="CurrentBuildNum" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Curr entBuildNu m<font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"C urrentBuil dNum")%><! --webbot bot="DatabaseResultColumn" endspan i-checksum="40737" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="NextBuildNum" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Next BuildNum&l t;font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"N extBuildNu m")%><!--w ebbot bot="DatabaseResultColumn" endspan i-checksum="27508" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="PreviousGABuild" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Prev iousGABuil d<font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"P reviousGAB uild")%><! --webbot bot="DatabaseResultColumn" endspan i-checksum="34608" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="Comments" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Comm ents<fo nt size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"C omments")% ><!--webbo t bot="DatabaseResultColumn" endspan i-checksum="16369" --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn 2.inc" i-groupsize="0" clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" ; width="100%"> <font color="#000000"& gt;This is the end of a Database Results region.</font></t d></ tr>" startspan --><!--#include file="_fpclass/fpdbrgn2.in c"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" -->
<%=varBend%></font>
</tbody>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p align="center"><a href="SUS.asp">HOME</a></p >
</body>
</html>
It isn't working, Not sure I Bracketed the information you supplied correctly. I'm not getting any errors just not the color change.
Here is my code
<html>
<head>
<% ' FP_ASP -- ASP Automatically generated by a Frontpage Component. Do not Edit.
FP_CharSet = "windows-1252"
FP_CodePage = 1252 %>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>SystemRelease</titl
</head>
<body>
<p align="center"><img border="0" src="susheader.jpg" width="614" height="111"></p>
<table width="100%" border="1">
<thead>
<tr>
<th ALIGN="LEFT">UPDATE</th>
<th ALIGN="LEFT"><b>SystemRele
<th ALIGN="LEFT"><b>BuildStatu
<th ALIGN="LEFT"><b>GatingPtrs
<th ALIGN="LEFT"><b>CurrentBui
<th ALIGN="LEFT"><b>NextBuildN
<th ALIGN="LEFT"><b>PreviousGA
<th ALIGN="LEFT"><b>Comments</
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-columnnames="ReleaseID,S
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM SUtable"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=8 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="Database6"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&ReleaseID=3
fp_iDisplayCols=8
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.in
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="13228" --><tr>
<%
varStatus = fp_rs("BuildStatus")
If varStatus = "red" OR varStatus = "Red" Then
varFontColor = "FF0000"
varBstart = "<b>"
varBend = "</b>"
Elseif varStatus = "yellow" OR varStatus = "Yellow" Then
varFontColor = "FFFF00"
varBstart = "<b>"
varBend = "</b>"
Elseif varStatus = "green" OR varStatus = "Green" Then
varFontColor = "00FF00"
varBstart = "<b>"
varBend = "</b>"
Else
varFontColor = ""
varBstart = ""
varBend = ""
End if
%>
<td>
<p align="center">
<a href="suedit.asp?ReleaseID
<td>
<font color=<%=varFontColor%>"><
<td>
<!--webbot bot="DatabaseResultColumn"
</td>
<td>
<!--webbot bot="DatabaseResultColumn"
<td>
<!--webbot bot="DatabaseResultColumn"
<td>
<!--webbot bot="DatabaseResultColumn"
<td>
<!--webbot bot="DatabaseResultColumn"
<td>
<!--webbot bot="DatabaseResultColumn"
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" -->
<%=varBend%></font>
</tbody>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p align="center"><a href="SUS.asp">HOME</a></p
</body>
</html>
Found a few mistakes
Starting with <p align="center"> delete everything from that point and replace with the code after my initials.
I assume you wanted BuildStatus bracketed with the font color changes --
You had <font color=<%=varFontColor%>">< %=varBstar t%></font>
which should read <font color="<%=varFontColor%>"> <%=varBsta rt%> your data starts here
then after your data put <%=varBend%></font>
also you had the code beginning on the line for SystemRelease vice BuildStatus
RCMB
<p align="center">
<a href="suedit.asp?ReleaseID =<%=FP_Fie ldURL(fp_r s,"Release ID")%>">Ed it</a></td >
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="SystemRelease" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Syst emRelease& lt;font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"S ystemRelea se")%><!-- webbot bot="DatabaseResultColumn" endspan i-checksum="36759" --></td>
<td>
<font color="<%=varFontColor%>"> <%=varBsta rt%><!--we bbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="BuildStatus" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Buil dStatus< ;font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"B uildStatus ")%><!--we bbot bot="DatabaseResultColumn" endspan i-checksum="32721" --><%=varBend%></font></p>
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="GatingPtrs" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Gati ngPtrs< font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"G atingPtrs" )%><!--web bot bot="DatabaseResultColumn" endspan i-checksum="29459" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="CurrentBuildNum" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Curr entBuildNu m<font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"C urrentBuil dNum")%><! --webbot bot="DatabaseResultColumn" endspan i-checksum="40737" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="NextBuildNum" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Next BuildNum&l t;font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"N extBuildNu m")%><!--w ebbot bot="DatabaseResultColumn" endspan i-checksum="27508" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="PreviousGABuild" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Prev iousGABuil d<font size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"P reviousGAB uild")%><! --webbot bot="DatabaseResultColumn" endspan i-checksum="34608" --></td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="ReleaseID,S ystemRelea se,BuildSt atus,Gatin gPtrs,Curr entBuildNu m,NextBuil dNum,Previ ousGABuild ,Comments" s-column="Comments" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&am p;lt;& lt;</fo nt>Comm ents<fo nt size="-1">&am p;gt;& gt;</fo nt>" startspan --><%=FP_FieldVal(fp_rs,"C omments")% ><!--webbo t bot="DatabaseResultColumn" endspan i-checksum="16369" --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn 2.inc" i-groupsize="0" clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" ; width="100%"> <font color="#000000"& gt;This is the end of a Database Results region.</font></t d></ tr>" startspan --><!--#include file="_fpclass/fpdbrgn2.in c"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" -->
<%=varBend%></font>
</tbody>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p align="center"><a href="SUS.asp">HOME</a></p >
</body>
</html>
Starting with <p align="center"> delete everything from that point and replace with the code after my initials.
I assume you wanted BuildStatus bracketed with the font color changes --
You had <font color=<%=varFontColor%>"><
which should read <font color="<%=varFontColor%>">
then after your data put <%=varBend%></font>
also you had the code beginning on the line for SystemRelease vice BuildStatus
RCMB
<p align="center">
<a href="suedit.asp?ReleaseID
<td>
<!--webbot bot="DatabaseResultColumn"
<td>
<font color="<%=varFontColor%>">
</td>
<td>
<!--webbot bot="DatabaseResultColumn"
<td>
<!--webbot bot="DatabaseResultColumn"
<td>
<!--webbot bot="DatabaseResultColumn"
<td>
<!--webbot bot="DatabaseResultColumn"
<td>
<!--webbot bot="DatabaseResultColumn"
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" -->
<%=varBend%></font>
</tbody>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p align="center"><a href="SUS.asp">HOME</a></p
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks RCMB,
works like a champ. You know your FP.
tmurray22
works like a champ. You know your FP.
tmurray22
Glad to help and hope you enjoy. The power of adding some VBScript to FP is unlimited. You can do things like alternate row colors, change background colors, show different pictures, etc. all based on the results of the db query.
Have fun and thanks for the points.
RCMB
Have fun and thanks for the points.
RCMB
Do you have a reference page or source to post?
Basicly you can use CSS to accomodate this.
You could name the column with an id, for example id="status", and then apply the style to that elment.
document.getElementById("s
using status as a variable containing any of the colors.
It would be easier to describe and try to solve if you present the code here.
BR MaB!