Skip navigation
Currently Being Moderated

How to hide html/text element when a recordset field is empty

Jun 7, 2012 5:05 AM

I have a bibliographical database. The result page show a bibliographical reference with ponctuations thanks to which I separate titel, authors, ... . there are some references with empty fields (the subtitel for example). When these fields are empty I try to do not show the ponctuation for these bibliographical elements (empty fields). I found the code below but it does not work. I try a lot of other scripts from and other forum but they do not work. A few years ago I used a javascript code that worked well but I do not find it anymore. Could you please take a look at the here down code and help me to solve this tiny problem please ?




<% If BxlCadreJuridique.Fields.Item("ComplementTitre").Value = "" AND BxlCadreJuridique.Fields.Item("ComplementTitre").Value = NULL Then %>
: <%=(BxlCadreJuridique.Fields.Item("ComplementTitre").Value)%> <% End If %>


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points