First of all not sure if this is in the correct forum as I think it could qualify as ASP or SQL.
I’m displaying records on a web page that I get from an SQL database. I want to highlight a record that has a field missing.
So for example if I have five columns and any one of the columns has a missing value I want to somehow highlight this possibly using a different text colour or having a small image next to it.
I display the records like so:
Is this possible?
I’ve searched almost endlessly for examples but can’t come across anything.
Thanks.
I’m displaying records on a web page that I get from an SQL database. I want to highlight a record that has a field missing.
So for example if I have five columns and any one of the columns has a missing value I want to somehow highlight this possibly using a different text colour or having a small image next to it.
I display the records like so:
Code:
<select id="Unit">
<%
' Unit
SQL = "SELECT DISTINCT([Unit code]) AS [Unit code] FROM Unit ORDER BY [Unit code] ASC;"
Set obj_RS1 = obj_CN.Execute(str_sql, adBoolean)
' Build list
While Not obj_RS1.EOF
str_Unit = obj_RS1("Unit code")
str_Option = "<option value=""" & str_Unit & """#Selected#>" & str_Unit & "</option>"
Response.Write vbtab & str_Option & vbcrlf
obj_RS1.MoveNext
Wend
%>
Is this possible?
I’ve searched almost endlessly for examples but can’t come across anything.
Thanks.