Cell Colors

H

hrider1

Is there a way to set the background color of a cell based on a field in my
results query? I have a field named "Priority" and I would like the cell
background color to be "yellow" if the field value = "2" and green if it's
value ="1" and red if it's value ="0". Can this be done in a results based
query page?

If so can someone help me because I am new to web pages, and I am not sure
how to do this or if there’s a site that I could get help from please let me
know.
 
T

Thomas A. Rowe

Can you paste into a post the HTML for this page?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
H

hrider1

This is the Code to the page

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>

<body>

<hr color="#800000">
<table border="0" width="100%" id="table1">
<tr>
<td><b><font size="4">Part Availability</font></b></td>
</tr>
</table>
<hr color="#800000">
<table border="1">
<thead>
<tr>
<th ALIGN="LEFT"><b>Part</b></th>
<th ALIGN="LEFT"><b>Description</b></th>
<th ALIGN="LEFT"><b>part_type</b></th>
<th><b>Safety Stock</b></th>
<th><b>COL FG</b></th>
<th><b>FG Need</b></th>
<th><b>TBR</b></th>
<th><b>TBR Room</b></th>
<th><b>Z Bin</b></th>
<th><b>OSR Bin</b></th>
<th><b>COL_LWRSHE</b></th>
<th><b>Tot Need</b></th>
<th><b>ARD</b></th>
<th><b>Van FG</b></th>
<th><b>Out</b></th>
<th><b>PsWIP</b></th>
<th><b>Gain/Loss</b></th>
<th><b>Priority</b></th>
<th><b>Sum</b></th>
<th><b>STDEV</b></th>
<th><b>Pipeline</b></th>
<th><b>Last Update</b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-columntypes="3,202,202,3,3,3,3,3,3,3,3,3,3,3,3,3,5,3,3,5,3,135"
s-dataconnection="Parts" b-tableformat="TRUE" b-menuformat="FALSE"
s-menuchoice="Part" s-menuvalue="Part" b-tableborder="TRUE"
b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE"
b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE"
s-recordsource="tblPartAvailability"
s-displaycolumns="Part,Description,part_type,Safety Stock,COL FG,FG
Need,TBR,TBR Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-criteria s-order="[Priority] - [Tot Need] - [FG Need] -" s-sql="SELECT *
FROM tblPartAvailability ORDER BY Priority DESC,&quot;Tot Need&quot;
DESC,&quot;FG Need&quot; DESC" b-procedure="FALSE" clientside
suggestedext="asp" s-defaultfields s-norecordsfound="No records returned."
i-maxrecords="0" i-groupsize="0" botid="0" u-dblib="_fpclass/fpdblib.inc"
u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY"
preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font
color="#000000">This is the start of a Database Results
region.</font></td></tr>" b-UseDotNET="FALSE" CurrentExt sa-InputTypes
b-DataGridFormat="FALSE" b-DGridAlternate="TRUE" sa-CritTypes
b-WasTableFormat="TRUE" 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 tblPartAvailability ORDER BY Priority DESC,""Tot
Need"" DESC,""FG Need"" DESC"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=22 align=""LEFT"" width=""100%"">No records
returned.</td></tr>"
fp_sDataConn="Parts"
fp_iMaxRecords=0
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice="Part"
fp_sMenuValue="Part"
fp_sColTypes="&Part=3&Description=202&part_type=202&Safety Stock=3&COL
FG=3&FG Need=3&TBR=3&TBR Room=3&Z Bin=3&OSR Bin=3&COL_LWRSHE=3&Tot
Need=3&ARD=3&Van
FG=3&Out=3&PsWIP=3&Gain/Loss=5&Priority=3&Sum=3&STDEV=5&Pipeline=3&File_Last_Update=135&"
fp_iDisplayCols=22
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="6534" --><tr>
<td bgcolor="">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="Part" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="&lt;font size="-1">&lt;&lt;</font>Part<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"Part")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="4063" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="Description" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Description<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Description")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="30092" --></td>
<td>
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="part_type" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>part_type<font size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"part_type")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="21078" --></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="Safety Stock" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Safety Stock<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"Safety Stock")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="30758" --></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="COL FG" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>COL FG<font
size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"COL
FG")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="10689"
--></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="FG Need" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>FG Need<font
size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"FG
Need")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="8219"
--></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="TBR" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>TBR<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"TBR")%><!--webbot bot="DatabaseResultColumn" endspan
i-checksum="64103" --></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="TBR Room" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>TBR Room<font
size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"TBR
Room")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="11176"
--></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="Z Bin" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Z Bin<font
size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Z
Bin")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="65329"
--></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="OSR Bin" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>OSR Bin<font
size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"OSR
Bin")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="10341"
--></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="COL_LWRSHE" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>COL_LWRSHE<font size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"COL_LWRSHE")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="16975" --></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="Tot Need" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Tot Need<font
size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Tot
Need")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="16426"
--></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="ARD" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>ARD<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"ARD")%><!--webbot bot="DatabaseResultColumn" endspan
i-checksum="64921" --></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="Van FG" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Van FG<font
size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Van
FG")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="14243"
--></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="Out" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Out<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"Out")%><!--webbot bot="DatabaseResultColumn" endspan
i-checksum="4809" --></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="PsWIP" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>PsWIP<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"PsWIP")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="9614" --></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="Gain/Loss" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Gain/Loss<font size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"Gain/Loss")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="18753" --></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="Priority" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Priority<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"Priority")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="17789" --></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="Sum" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Sum<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"Sum")%><!--webbot bot="DatabaseResultColumn" endspan
i-checksum="5058" --></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="STDEV" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>STDEV<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"STDEV")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="5835" --></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="Pipeline" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Pipeline<font
size="-1">&gt;&gt;</font>" startspan
--><%=FP_FieldVal(fp_rs,"Pipeline")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="15864" --></td>
<td align="center">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
s-column="File_Last_Update" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>File_Last_Update<font size="-1">&gt;&gt;</font>"
startspan --><%=FP_FieldVal(fp_rs,"File_Last_Update")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="41333" --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0"
clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00"
width="100%"><font color="#000000">This is the end of a Database Results
region.</font></td></tr>" startspan --><!--#include
file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>
</table>

</body>

</html>
 
P

p c

Yes, if your "form results" page is ASP or other script.

One way you:
1. You add to your style sheet page or add style tags to the the results
page for TD that corrsepond to each background color. Eg. 2Yellow,
1Green, 0Red.

2. create sub that will write that cell with the appropriate style class
based on the evalue

3. Use that sub to write those cells where you need them by passing the
value for that parameter returned from the recordset.

...PC
 
S

Stefan B Rusynko

See my response to your duplicate post in the programming newsgroup
But Since you are using the DBRW
In Code View find the cell that displays the DB field for: Priority
- it will look something like:

<td align="center">
<!--webbot bot="DatabaseResultColumn" s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR Room,Z Bin,OSR
Bin,COL_LWRSHE,Tot Need,ARD,Van FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update" s-column="Priority"
b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font
size="-1">&lt;&lt;</font>Priority<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Priority")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="17789" --></td>

Change just the <td align="center"> tag to:

<%
Select Case Cint(FP_FieldVal(fp_rs,"Priority"))
Case 2
strColor = "bgcolor='yellow'"
Case 1
strColor = "bgcolor='green'"
Case 0
strColor = "bgcolor='red'"
Case Else
strColor = "bgcolor='blue'"
' Some default color for other than 0,1,2 as values
End Select
%>
<td align="center" <%=strColor%>>


PS
You will eventualy run into problems because you are using DB fields w/ spaces in their field names
- recommend you redo your DB structure to eliminate all spaces in all field names



| This is the Code to the page
|
| <html>
|
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
| </head>
|
| <body>
|
| <hr color="#800000">
| <table border="0" width="100%" id="table1">
| <tr>
| <td><b><font size="4">Part Availability</font></b></td>
| </tr>
| </table>
| <hr color="#800000">
| <table border="1">
| <thead>
| <tr>
| <th ALIGN="LEFT"><b>Part</b></th>
| <th ALIGN="LEFT"><b>Description</b></th>
| <th ALIGN="LEFT"><b>part_type</b></th>
| <th><b>Safety Stock</b></th>
| <th><b>COL FG</b></th>
| <th><b>FG Need</b></th>
| <th><b>TBR</b></th>
| <th><b>TBR Room</b></th>
| <th><b>Z Bin</b></th>
| <th><b>OSR Bin</b></th>
| <th><b>COL_LWRSHE</b></th>
| <th><b>Tot Need</b></th>
| <th><b>ARD</b></th>
| <th><b>Van FG</b></th>
| <th><b>Out</b></th>
| <th><b>PsWIP</b></th>
| <th><b>Gain/Loss</b></th>
| <th><b>Priority</b></th>
| <th><b>Sum</b></th>
| <th><b>STDEV</b></th>
| <th><b>Pipeline</b></th>
| <th><b>Last Update</b></th>
| </tr>
| </thead>
| <tbody>
| <!--webbot bot="DatabaseRegionStart"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-columntypes="3,202,202,3,3,3,3,3,3,3,3,3,3,3,3,3,5,3,3,5,3,135"
| s-dataconnection="Parts" b-tableformat="TRUE" b-menuformat="FALSE"
| s-menuchoice="Part" s-menuvalue="Part" b-tableborder="TRUE"
| b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE"
| b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE"
| s-recordsource="tblPartAvailability"
| s-displaycolumns="Part,Description,part_type,Safety Stock,COL FG,FG
| Need,TBR,TBR Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-criteria s-order="[Priority] - [Tot Need] - [FG Need] -" s-sql="SELECT *
| FROM tblPartAvailability ORDER BY Priority DESC,&quot;Tot Need&quot;
| DESC,&quot;FG Need&quot; DESC" b-procedure="FALSE" clientside
| suggestedext="asp" s-defaultfields s-norecordsfound="No records returned."
| i-maxrecords="0" i-groupsize="0" botid="0" u-dblib="_fpclass/fpdblib.inc"
| u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY"
| preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font
| color="#000000">This is the start of a Database Results
| region.</font></td></tr>" b-UseDotNET="FALSE" CurrentExt sa-InputTypes
| b-DataGridFormat="FALSE" b-DGridAlternate="TRUE" sa-CritTypes
| b-WasTableFormat="TRUE" 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 tblPartAvailability ORDER BY Priority DESC,""Tot
| Need"" DESC,""FG Need"" DESC"
| fp_sDefault=""
| fp_sNoRecords="<tr><td colspan=22 align=""LEFT"" width=""100%"">No records
| returned.</td></tr>"
| fp_sDataConn="Parts"
| fp_iMaxRecords=0
| fp_iCommandType=1
| fp_iPageSize=0
| fp_fTableFormat=True
| fp_fMenuFormat=False
| fp_sMenuChoice="Part"
| fp_sMenuValue="Part"
| fp_sColTypes="&Part=3&Description=202&part_type=202&Safety Stock=3&COL
| FG=3&FG Need=3&TBR=3&TBR Room=3&Z Bin=3&OSR Bin=3&COL_LWRSHE=3&Tot
| Need=3&ARD=3&Van
| FG=3&Out=3&PsWIP=3&Gain/Loss=5&Priority=3&Sum=3&STDEV=5&Pipeline=3&File_Last_Update=135&"
| fp_iDisplayCols=22
| fp_fCustomQuery=False
| BOTID=0
| fp_iRegion=BOTID
| %>
| <!--#include file="_fpclass/fpdbrgn1.inc"-->
| <!--webbot bot="DatabaseRegionStart" endspan i-checksum="6534" --><tr>
| <td bgcolor="">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="Part" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="&lt;font size="-1">&lt;&lt;</font>Part<font
| size="-1">&gt;&gt;</font>" startspan
| --><%=FP_FieldVal(fp_rs,"Part")%><!--webbot bot="DatabaseResultColumn"
| endspan i-checksum="4063" --></td>
| <td>
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="Description" b-tableformat="TRUE" b-hashtml="FALSE"
| b-makelink="FALSE" clientside b-MenuFormat preview="<font
| size="-1">&lt;&lt;</font>Description<font size="-1">&gt;&gt;</font>"
| startspan --><%=FP_FieldVal(fp_rs,"Description")%><!--webbot
| bot="DatabaseResultColumn" endspan i-checksum="30092" --></td>
| <td>
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="part_type" b-tableformat="TRUE" b-hashtml="FALSE"
| b-makelink="FALSE" clientside b-MenuFormat preview="<font
| size="-1">&lt;&lt;</font>part_type<font size="-1">&gt;&gt;</font>" startspan
| --><%=FP_FieldVal(fp_rs,"part_type")%><!--webbot bot="DatabaseResultColumn"
| endspan i-checksum="21078" --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="Safety Stock" b-tableformat="TRUE" b-hashtml="FALSE"
| b-makelink="FALSE" clientside b-MenuFormat preview="<font
| size="-1">&lt;&lt;</font>Safety Stock<font size="-1">&gt;&gt;</font>"
| startspan --><%=FP_FieldVal(fp_rs,"Safety Stock")%><!--webbot
| bot="DatabaseResultColumn" endspan i-checksum="30758" --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="COL FG" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>COL FG<font
| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"COL
| FG")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="10689"
| --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="FG Need" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>FG Need<font
| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"FG
| Need")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="8219"
| --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="TBR" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>TBR<font
| size="-1">&gt;&gt;</font>" startspan
| --><%=FP_FieldVal(fp_rs,"TBR")%><!--webbot bot="DatabaseResultColumn" endspan
| i-checksum="64103" --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="TBR Room" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>TBR Room<font
| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"TBR
| Room")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="11176"
| --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="Z Bin" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Z Bin<font
| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Z
| Bin")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="65329"
| --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="OSR Bin" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>OSR Bin<font
| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"OSR
| Bin")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="10341"
| --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="COL_LWRSHE" b-tableformat="TRUE" b-hashtml="FALSE"
| b-makelink="FALSE" clientside b-MenuFormat preview="<font
| size="-1">&lt;&lt;</font>COL_LWRSHE<font size="-1">&gt;&gt;</font>" startspan
| --><%=FP_FieldVal(fp_rs,"COL_LWRSHE")%><!--webbot bot="DatabaseResultColumn"
| endspan i-checksum="16975" --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="Tot Need" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Tot Need<font
| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Tot
| Need")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="16426"
| --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="ARD" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>ARD<font
| size="-1">&gt;&gt;</font>" startspan
| --><%=FP_FieldVal(fp_rs,"ARD")%><!--webbot bot="DatabaseResultColumn" endspan
| i-checksum="64921" --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="Van FG" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Van FG<font
| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Van
| FG")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="14243"
| --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="Out" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Out<font
| size="-1">&gt;&gt;</font>" startspan
| --><%=FP_FieldVal(fp_rs,"Out")%><!--webbot bot="DatabaseResultColumn" endspan
| i-checksum="4809" --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="PsWIP" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>PsWIP<font
| size="-1">&gt;&gt;</font>" startspan
| --><%=FP_FieldVal(fp_rs,"PsWIP")%><!--webbot bot="DatabaseResultColumn"
| endspan i-checksum="9614" --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="Gain/Loss" b-tableformat="TRUE" b-hashtml="FALSE"
| b-makelink="FALSE" clientside b-MenuFormat preview="<font
| size="-1">&lt;&lt;</font>Gain/Loss<font size="-1">&gt;&gt;</font>" startspan
| --><%=FP_FieldVal(fp_rs,"Gain/Loss")%><!--webbot bot="DatabaseResultColumn"
| endspan i-checksum="18753" --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="Priority" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Priority<font
| size="-1">&gt;&gt;</font>" startspan
| --><%=FP_FieldVal(fp_rs,"Priority")%><!--webbot bot="DatabaseResultColumn"
| endspan i-checksum="17789" --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="Sum" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Sum<font
| size="-1">&gt;&gt;</font>" startspan
| --><%=FP_FieldVal(fp_rs,"Sum")%><!--webbot bot="DatabaseResultColumn" endspan
| i-checksum="5058" --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="STDEV" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>STDEV<font
| size="-1">&gt;&gt;</font>" startspan
| --><%=FP_FieldVal(fp_rs,"STDEV")%><!--webbot bot="DatabaseResultColumn"
| endspan i-checksum="5835" --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="Pipeline" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Pipeline<font
| size="-1">&gt;&gt;</font>" startspan
| --><%=FP_FieldVal(fp_rs,"Pipeline")%><!--webbot bot="DatabaseResultColumn"
| endspan i-checksum="15864" --></td>
| <td align="center">
| <!--webbot bot="DatabaseResultColumn"
| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
| s-column="File_Last_Update" b-tableformat="TRUE" b-hashtml="FALSE"
| b-makelink="FALSE" clientside b-MenuFormat preview="<font
| size="-1">&lt;&lt;</font>File_Last_Update<font size="-1">&gt;&gt;</font>"
| startspan --><%=FP_FieldVal(fp_rs,"File_Last_Update")%><!--webbot
| bot="DatabaseResultColumn" endspan i-checksum="41333" --></td>
| </tr>
| <!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
| b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0"
| clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00"
| width="100%"><font color="#000000">This is the end of a Database Results
| region.</font></td></tr>" startspan --><!--#include
| file="_fpclass/fpdbrgn2.inc"-->
| <!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>
| </table>
|
| </body>
|
| </html>
|
| "Thomas A. Rowe" wrote:
|
| > Can you paste into a post the HTML for this page?
| >
| > --
| > ==============================================
| > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > ==============================================
| > If you feel your current issue is a results of installing
| > a Service Pack or security update, please contact
| > Microsoft Product Support Services:
| > http://support.microsoft.com
| > If the problem can be shown to have been caused by a
| > security update, then there is usually no charge for the call.
| > ==============================================
| >
| > | > > Is there a way to set the background color of a cell based on a field in my
| > > results query? I have a field named "Priority" and I would like the cell
| > > background color to be "yellow" if the field value = "2" and green if it's
| > > value ="1" and red if it's value ="0". Can this be done in a results based
| > > query page?
| > >
| > > If so can someone help me because I am new to web pages, and I am not sure
| > > how to do this or if there's a site that I could get help from please let me
| > > know.
| > >
| >
| >
| >
 
S

Stefan B Rusynko

The error you are getting is because you are using the code post I posted in your duplicate post the programming newsgroup which was
valid only IF you were Not using the DBRW
- use the code / instructions in my above post since you Are using the DBRW


| .......
| I keep getting a error saying:
| Error Type:
| Microsoft VBScript runtime (0x800A000D)
| Type mismatch: 'objRS'
| /logistic/Default.asp, line 69
|

| See my response to your duplicate post in the programming newsgroup
| But Since you are using the DBRW
| In Code View find the cell that displays the DB field for: Priority
| - it will look something like:
|
| <td align="center">
| <!--webbot bot="DatabaseResultColumn" s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR Room,Z
Bin,OSR
| Bin,COL_LWRSHE,Tot Need,ARD,Van FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update" s-column="Priority"
| b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font
| size="-1">&lt;&lt;</font>Priority<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Priority")%><!--webbot
| bot="DatabaseResultColumn" endspan i-checksum="17789" --></td>
|
| Change just the <td align="center"> tag to:
|
| <%
| Select Case Cint(FP_FieldVal(fp_rs,"Priority"))
| Case 2
| strColor = "bgcolor='yellow'"
| Case 1
| strColor = "bgcolor='green'"
| Case 0
| strColor = "bgcolor='red'"
| Case Else
| strColor = "bgcolor='blue'"
| ' Some default color for other than 0,1,2 as values
| End Select
| %>
| <td align="center" <%=strColor%>>
|
|
| PS
| You will eventualy run into problems because you are using DB fields w/ spaces in their field names
| - recommend you redo your DB structure to eliminate all spaces in all field names
| --
|
| _____________________________________________
| SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| "Warning - Using the F1 Key will not break anything!" (-;
| To find the best Newsgroup for FrontPage support see:
| http://www.net-sites.com/sitebuilder/newsgroups.asp
| _____________________________________________
|
|
| || This is the Code to the page
||
|| <html>
||
|| <head>
|| <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|| </head>
||
|| <body>
||
|| <hr color="#800000">
|| <table border="0" width="100%" id="table1">
|| <tr>
|| <td><b><font size="4">Part Availability</font></b></td>
|| </tr>
|| </table>
|| <hr color="#800000">
|| <table border="1">
|| <thead>
|| <tr>
|| <th ALIGN="LEFT"><b>Part</b></th>
|| <th ALIGN="LEFT"><b>Description</b></th>
|| <th ALIGN="LEFT"><b>part_type</b></th>
|| <th><b>Safety Stock</b></th>
|| <th><b>COL FG</b></th>
|| <th><b>FG Need</b></th>
|| <th><b>TBR</b></th>
|| <th><b>TBR Room</b></th>
|| <th><b>Z Bin</b></th>
|| <th><b>OSR Bin</b></th>
|| <th><b>COL_LWRSHE</b></th>
|| <th><b>Tot Need</b></th>
|| <th><b>ARD</b></th>
|| <th><b>Van FG</b></th>
|| <th><b>Out</b></th>
|| <th><b>PsWIP</b></th>
|| <th><b>Gain/Loss</b></th>
|| <th><b>Priority</b></th>
|| <th><b>Sum</b></th>
|| <th><b>STDEV</b></th>
|| <th><b>Pipeline</b></th>
|| <th><b>Last Update</b></th>
|| </tr>
|| </thead>
|| <tbody>
|| <!--webbot bot="DatabaseRegionStart"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-columntypes="3,202,202,3,3,3,3,3,3,3,3,3,3,3,3,3,5,3,3,5,3,135"
|| s-dataconnection="Parts" b-tableformat="TRUE" b-menuformat="FALSE"
|| s-menuchoice="Part" s-menuvalue="Part" b-tableborder="TRUE"
|| b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE"
|| b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE"
|| s-recordsource="tblPartAvailability"
|| s-displaycolumns="Part,Description,part_type,Safety Stock,COL FG,FG
|| Need,TBR,TBR Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-criteria s-order="[Priority] - [Tot Need] - [FG Need] -" s-sql="SELECT *
|| FROM tblPartAvailability ORDER BY Priority DESC,&quot;Tot Need&quot;
|| DESC,&quot;FG Need&quot; DESC" b-procedure="FALSE" clientside
|| suggestedext="asp" s-defaultfields s-norecordsfound="No records returned."
|| i-maxrecords="0" i-groupsize="0" botid="0" u-dblib="_fpclass/fpdblib.inc"
|| u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY"
|| preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font
|| color="#000000">This is the start of a Database Results
|| region.</font></td></tr>" b-UseDotNET="FALSE" CurrentExt sa-InputTypes
|| b-DataGridFormat="FALSE" b-DGridAlternate="TRUE" sa-CritTypes
|| b-WasTableFormat="TRUE" 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 tblPartAvailability ORDER BY Priority DESC,""Tot
|| Need"" DESC,""FG Need"" DESC"
|| fp_sDefault=""
|| fp_sNoRecords="<tr><td colspan=22 align=""LEFT"" width=""100%"">No records
|| returned.</td></tr>"
|| fp_sDataConn="Parts"
|| fp_iMaxRecords=0
|| fp_iCommandType=1
|| fp_iPageSize=0
|| fp_fTableFormat=True
|| fp_fMenuFormat=False
|| fp_sMenuChoice="Part"
|| fp_sMenuValue="Part"
|| fp_sColTypes="&Part=3&Description=202&part_type=202&Safety Stock=3&COL
|| FG=3&FG Need=3&TBR=3&TBR Room=3&Z Bin=3&OSR Bin=3&COL_LWRSHE=3&Tot
|| Need=3&ARD=3&Van
|| FG=3&Out=3&PsWIP=3&Gain/Loss=5&Priority=3&Sum=3&STDEV=5&Pipeline=3&File_Last_Update=135&"
|| fp_iDisplayCols=22
|| fp_fCustomQuery=False
|| BOTID=0
|| fp_iRegion=BOTID
|| %>
|| <!--#include file="_fpclass/fpdbrgn1.inc"-->
|| <!--webbot bot="DatabaseRegionStart" endspan i-checksum="6534" --><tr>
|| <td bgcolor="">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="Part" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="&lt;font size="-1">&lt;&lt;</font>Part<font
|| size="-1">&gt;&gt;</font>" startspan
|| --><%=FP_FieldVal(fp_rs,"Part")%><!--webbot bot="DatabaseResultColumn"
|| endspan i-checksum="4063" --></td>
|| <td>
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="Description" b-tableformat="TRUE" b-hashtml="FALSE"
|| b-makelink="FALSE" clientside b-MenuFormat preview="<font
|| size="-1">&lt;&lt;</font>Description<font size="-1">&gt;&gt;</font>"
|| startspan --><%=FP_FieldVal(fp_rs,"Description")%><!--webbot
|| bot="DatabaseResultColumn" endspan i-checksum="30092" --></td>
|| <td>
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="part_type" b-tableformat="TRUE" b-hashtml="FALSE"
|| b-makelink="FALSE" clientside b-MenuFormat preview="<font
|| size="-1">&lt;&lt;</font>part_type<font size="-1">&gt;&gt;</font>" startspan
|| --><%=FP_FieldVal(fp_rs,"part_type")%><!--webbot bot="DatabaseResultColumn"
|| endspan i-checksum="21078" --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="Safety Stock" b-tableformat="TRUE" b-hashtml="FALSE"
|| b-makelink="FALSE" clientside b-MenuFormat preview="<font
|| size="-1">&lt;&lt;</font>Safety Stock<font size="-1">&gt;&gt;</font>"
|| startspan --><%=FP_FieldVal(fp_rs,"Safety Stock")%><!--webbot
|| bot="DatabaseResultColumn" endspan i-checksum="30758" --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="COL FG" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>COL FG<font
|| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"COL
|| FG")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="10689"
|| --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="FG Need" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>FG Need<font
|| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"FG
|| Need")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="8219"
|| --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="TBR" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>TBR<font
|| size="-1">&gt;&gt;</font>" startspan
|| --><%=FP_FieldVal(fp_rs,"TBR")%><!--webbot bot="DatabaseResultColumn" endspan
|| i-checksum="64103" --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="TBR Room" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>TBR Room<font
|| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"TBR
|| Room")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="11176"
|| --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="Z Bin" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Z Bin<font
|| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Z
|| Bin")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="65329"
|| --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="OSR Bin" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>OSR Bin<font
|| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"OSR
|| Bin")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="10341"
|| --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="COL_LWRSHE" b-tableformat="TRUE" b-hashtml="FALSE"
|| b-makelink="FALSE" clientside b-MenuFormat preview="<font
|| size="-1">&lt;&lt;</font>COL_LWRSHE<font size="-1">&gt;&gt;</font>" startspan
|| --><%=FP_FieldVal(fp_rs,"COL_LWRSHE")%><!--webbot bot="DatabaseResultColumn"
|| endspan i-checksum="16975" --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="Tot Need" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Tot Need<font
|| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Tot
|| Need")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="16426"
|| --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="ARD" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>ARD<font
|| size="-1">&gt;&gt;</font>" startspan
|| --><%=FP_FieldVal(fp_rs,"ARD")%><!--webbot bot="DatabaseResultColumn" endspan
|| i-checksum="64921" --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="Van FG" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Van FG<font
|| size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Van
|| FG")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="14243"
|| --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="Out" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Out<font
|| size="-1">&gt;&gt;</font>" startspan
|| --><%=FP_FieldVal(fp_rs,"Out")%><!--webbot bot="DatabaseResultColumn" endspan
|| i-checksum="4809" --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="PsWIP" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>PsWIP<font
|| size="-1">&gt;&gt;</font>" startspan
|| --><%=FP_FieldVal(fp_rs,"PsWIP")%><!--webbot bot="DatabaseResultColumn"
|| endspan i-checksum="9614" --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="Gain/Loss" b-tableformat="TRUE" b-hashtml="FALSE"
|| b-makelink="FALSE" clientside b-MenuFormat preview="<font
|| size="-1">&lt;&lt;</font>Gain/Loss<font size="-1">&gt;&gt;</font>" startspan
|| --><%=FP_FieldVal(fp_rs,"Gain/Loss")%><!--webbot bot="DatabaseResultColumn"
|| endspan i-checksum="18753" --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="Priority" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Priority<font
|| size="-1">&gt;&gt;</font>" startspan
|| --><%=FP_FieldVal(fp_rs,"Priority")%><!--webbot bot="DatabaseResultColumn"
|| endspan i-checksum="17789" --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="Sum" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Sum<font
|| size="-1">&gt;&gt;</font>" startspan
|| --><%=FP_FieldVal(fp_rs,"Sum")%><!--webbot bot="DatabaseResultColumn" endspan
|| i-checksum="5058" --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="STDEV" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>STDEV<font
|| size="-1">&gt;&gt;</font>" startspan
|| --><%=FP_FieldVal(fp_rs,"STDEV")%><!--webbot bot="DatabaseResultColumn"
|| endspan i-checksum="5835" --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="Pipeline" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
|| clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Pipeline<font
|| size="-1">&gt;&gt;</font>" startspan
|| --><%=FP_FieldVal(fp_rs,"Pipeline")%><!--webbot bot="DatabaseResultColumn"
|| endspan i-checksum="15864" --></td>
|| <td align="center">
|| <!--webbot bot="DatabaseResultColumn"
|| s-columnnames="Part,Description,part_type,Safety Stock,COL FG,FG Need,TBR,TBR
|| Room,Z Bin,OSR Bin,COL_LWRSHE,Tot Need,ARD,Van
|| FG,Out,PsWIP,Gain/Loss,Priority,Sum,STDEV,Pipeline,File_Last_Update"
|| s-column="File_Last_Update" b-tableformat="TRUE" b-hashtml="FALSE"
|| b-makelink="FALSE" clientside b-MenuFormat preview="<font
|| size="-1">&lt;&lt;</font>File_Last_Update<font size="-1">&gt;&gt;</font>"
|| startspan --><%=FP_FieldVal(fp_rs,"File_Last_Update")%><!--webbot
|| bot="DatabaseResultColumn" endspan i-checksum="41333" --></td>
|| </tr>
|| <!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE"
|| b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0"
|| clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00"
|| width="100%"><font color="#000000">This is the end of a Database Results
|| region.</font></td></tr>" startspan --><!--#include
|| file="_fpclass/fpdbrgn2.inc"-->
|| <!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>
|| </table>
||
|| </body>
||
|| </html>
||
|| "Thomas A. Rowe" wrote:
||
|| > Can you paste into a post the HTML for this page?
|| >
|| > --
|| > ==============================================
|| > Thomas A. Rowe (Microsoft MVP - FrontPage)
|| > ==============================================
|| > If you feel your current issue is a results of installing
|| > a Service Pack or security update, please contact
|| > Microsoft Product Support Services:
|| > http://support.microsoft.com
|| > If the problem can be shown to have been caused by a
|| > security update, then there is usually no charge for the call.
|| > ==============================================
|| >
|| > || > > Is there a way to set the background color of a cell based on a field in my
|| > > results query? I have a field named "Priority" and I would like the cell
|| > > background color to be "yellow" if the field value = "2" and green if it's
|| > > value ="1" and red if it's value ="0". Can this be done in a results based
|| > > query page?
|| > >
|| > > If so can someone help me because I am new to web pages, and I am not sure
|| > > how to do this or if there's a site that I could get help from please let me
|| > > know.
|| > >
|| >
|| >
|| >
|
|
 
Top