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

Sony Xperia Z3 Compact review: A better deal than the Z3 and most smartphones

IDG UK Sites

Why people aren't upgrading to iOS 8: new features are for power users, not the average Joe

IDG UK Sites

Framestore recreates ancient China for Mr Bean's martial arts misadventure

IDG UK Sites

iPad Air 2 review: Insanely fast and alarmingly thin. Speed tests, camera tests and more