Stuck with this ASP code

  CutNpaste 10:41 17 Nov 2008
Locked

Hi,
I am having problems with this peice of code. I am trying to see if this particular field in the recordset is empty and if it is then to display a message:

if Trim(buildingsInfo("actiontaken")) = "" then


Response.Write("Hello World")

I have even tried Len(buildingsInfo("actiontaken")) = 0 , but it still would not work even though the field is empty.

any suggestions???

  CutNpaste 10:42 17 Nov 2008

i am using an access database

  cortez© 13:52 19 Nov 2008

Have you tried IsNull(yourstring)?

It all depends on how and where you open your recordset and where on your page your doing your if statement.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Fujitsu Lifebook P727 laptop review

Best of the Grad Shows 2017: University of the West of England (UWE)

Best value Mac: Which is the best £1249 Mac to buy

Les meilleures GoPro 2017