I'm looping through some field names, but I don't want two of them to be hyperlinks. It works when I just do it for one field name:
But when I do it with two, it doesn't work:
It goes ahead and puts hyperlinks on all the field names.
Here's the full relevent code:
Any ideas? Thanks!
Code:
If oTableField.Name <> "Address" Then
Code:
If oTableField.Name <> "Address" OR oTableField.Name <> "Phone" Then
Here's the full relevent code:
Code:
For Each oTableField In oRecordSet.Fields
Response.Write "<th bgcolor=""#CCCCCC"" align=""left"">"
If oTableField.Name <> "Address" OR oTableField.Name <> "Phone" Then
Response.Write "<A href=""" & url & "?csort="& oTableField.Name &"&lastsort="& thissort & """>"
End If
Response.Write "<b>" & oTableField.Name & "</b></a></th>"
Next
Any ideas? Thanks!