更改报告Asp中重复值或行的颜色 [英] Change color for Duplicated Values or rows in Report Asp

查看:66
本文介绍了更改报告Asp中重复值或行的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一份报告并需要知道特定栏目的重复值





如何更改格式的颜色重复此值

i want make a report and need to know the duplicated values for specific column


how i can change the color of format duplicated this values

推荐答案

从您的输入中,您可以通过两种方式实现相同的目标



1。从数据库中获取数据,其中一些标记为重复值,并根据您的显示要求显示在前端。



2.从数据库顺序获取数据凭借你的价值。在前端构建逻辑以检查重复值并相应地显示它。





希望这对您有所帮助。
From your input, You can achieve the same in two ways

1. Fetch data from database with some flagging for duplicate values and display in front end on the basis of that flag with your display requirement.

2. Fetch the data from database order by with your value. Build a logic in front end to check the duplicate value and display it accordingly.


Hope this will help you.


检查这个小代码脚本





<%如果rsUser(yourcol)=Y然后%>

< TD valign =top>< font size =1style =BACKGROUND-COLOR:red>您的价值< / font>< / TD>

<%else%>



< TD valign =top>< font size =1 style =BACKGROUND-COLOR:green>你的价值< / font>< / TD>



<%end if if>



希望这对你有帮助。
Check this small code script


<% If rsUser("yourcol")="Y" Then %>
<TD valign="top" ><font size="1" style="BACKGROUND-COLOR:red" >your Value</font></TD>
<% else %>

<TD valign="top" ><font size="1" style="BACKGROUND-COLOR:green" >your Value</font></TD>

<% end if%>

hope this will help you.


这篇关于更改报告Asp中重复值或行的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆