Wrap it in a script that checks to see if there's anything in the field -
this might work:
<% If fp_rs("LocName") > " " then %>
<a
href="locdetail.asp?OrgName=<%=FP_FieldURL(fp_rs,"OrgName")%>&LocName=<%=FP_FieldURL(fp_rs,"LocName")%>">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="OrgName,LocName,OrgDescription,LocMainOffice?,LocAddress1,LocAddress2,LocCityActual,City,LocState,LocZip,Phone,Extension,Hotline,Fax,TTY,Email,LocURL,LocDescription"
s-column="LocName" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="<font size="-1"><<</font>LocName<font
size="-1">>></font>" startspan
s-ColumnTypes="202,202,203,11,202,202,202,202,202,202,202,202,202,202,202,202,203,203"
--><%=FP_FieldVal(fp_rs,"LocName")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="13854" --></a>
<% End If %>
--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
Expression Web Resources:
http://www.spiderwebwoman.com/xweb/
FrontPage Resources:
http://www.spiderwebwoman.com/resources/
Please reply to the newsgroup for the benefit of others
John Garvey said:
This is working perfectly for displaying values from fields that contain
hyperlinks and email addresses. I'm tripping up on how to, or even
whether I
can, use the same technique on a (non-html) database column value to which
I
have assigned a hyperlink and parameters for opening related pages. Any
suggestions there? Here's the code I'd like to fix to remove the leading
space:
<a
href="locdetail.asp?OrgName=<%=FP_FieldURL(fp_rs,"OrgName")%>&LocName=<%=FP_FieldURL(fp_rs,"LocName")%>">
<!--webbot bot="DatabaseResultColumn"
s-columnnames="OrgName,LocName,OrgDescription,LocMainOffice?,LocAddress1,LocAddress2,LocCityActual,City,LocState,LocZip,Phone,Extension,Hotline,Fax,TTY,Email,LocURL,LocDescription"
s-column="LocName" b-tableformat="TRUE" b-hashtml="FALSE"
b-makelink="FALSE"
clientside b-MenuFormat preview="<font
size="-1"><<</font>LocName<font
size="-1">>></font>" startspan
s-ColumnTypes="202,202,203,11,202,202,202,202,202,202,202,202,202,202,202,202,203,203"
--><%=FP_FieldVal(fp_rs,"LocName")%><!--webbot bot="DatabaseResultColumn"
endspan i-checksum="13854" --></a>