Stuck with this ASP code

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

i am using an access database

  cortez© 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.

Advertisement

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

Should I upgrade to Windows 10? 8 reasons why you should upgrade to Windows 10... and 2 why you…

We are being sold the ability to spend money we don't have. And we love it

IKinema aims to banish droopy shoulders and wonky spines in animated CG characters

How to use Apple Music in the UK: Complete guide to Apple Music's features

We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message