Yes
you can apply classic ASP code to many parts of the DBRW
- even to the extent of eliminating the DBRW completely and doing it all with custom code
See
http://www.w3schools.com/asp/default.asp
and
http://www.w3schools.com/ado/default.asp
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________
Thanks for the assist. Works well. Looking at this, it appears that with a
couple of tweaks, it can be used in a variety of places?
David
:
I'm guessing you are talking about a Data Results Table (from the DBRW)
- set the results as a table
One column will be the numeric values you are checking the results values for <60, 60-80 & >80
- with a field name of say: YOURFIELDNAME
First set up three style classes for the blue and green, and default (say black) text in the head section of the page
<style type="text/css">
..blue {color: Blue;}
..green {color: Green;}
..std {color: Black;}
<style>
Then Find your display cell for that value in you results in code view
- it will look something like
<td>fp_rs("YOURFIELDNAME")</td>
And change it to
<td>
<%
strColor="std"
IF IsNumeric(fp_rs("YOURFIELDNAME")) THEN
IF fp_rs("YOURFIELDNAME")>=60 AND fp_rs("YOURFIELDNAME")<=80 THEN
strColor="blue"
ELSEIF fp_rs("YOURFIELDNAMEHERE")>80 THEN
strColor="green"
ELSE
strColor="std"
END IF
END IF
%>
<span class="<%=strColor%>">fp_rs("YOURFIELDNAMEHERE")</span>
</td>
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________
I have a Results table with 7 columns. I would like to setup conditional
formatting based on the results. I am not sure if a table or text fields are
preferred for this. Also where to locate the necessary coding to perform
this. An example...>60 and <80 would be blue, and greater than 80 would be
green.
Thanks for any assist
David
.
.