Stuck with this ASP code

  CutNpaste 10:41 AM 17 Nov 08

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 AM 17 Nov 08

i am using an access database

  cortez© 13:52 PM 19 Nov 08

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.

Surface Pro 4 UK release date, price and specs: Thinner, lighter, faster with new Type Cover and Pen

1995-2015: How technology has changed the world in 20 years

Territory delivers realistic NASA screens for The Martian - as they will be in 20 years time

21 brilliant tips for Mac OS X El Capitan: The best new Mac features in OS X 10.11