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
Contact Forum Editor

Send an email to our Forum Editor:


PLEASE NOTE: Your name is used only to let the Forum Editor know who sent the message. Both your name and email address will not be used for any other purpose.

Tech Helproom


It's free to register, to post a question or to start / join a discussion


 

Stuck with this ASP code


CutNpaste

Likes # 0

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???

Like this post
CutNpaste

Likes # 0

i am using an access database

Like this post
cortez©

Likes # 0

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.

Like this post

Reply to this topic

This thread has been locked.



IDG UK Sites

Nokia replaces budget Lumia 520 with 530: Release date, price and specs

IDG UK Sites

Everything you need to know about Apple's iPhone Camera in iOS 8

IDG UK Sites

Why you shouldn't trust password managers

IDG UK Sites

How to make an 'Apple iWatch' using an iPod nano and a 3D printer