If one of the columns contain a numeric value the rest are null:
Ex)
contact_catSub_id = 123
contact2_catSub_id = null
contact3_catSub_id = null
contact4_catSub_id = null
Even in the one example that works, this is how the DB is.
Suggestions?
Hey Experts!!
I have a classic ASP application which I have written about prior. My related solution is posted below as well. I've determined that I need to filter the the information client-side.
I'm at my witt's end with this thing and we will be switching over to a normalized DB and PHP soon. But for now I have to get this working.
The major problem is that this code works on some variables but not others. I can't figure it out. When contact_CatSub_id is present or not equal to 0 then I want it to show the values of contact_first and contact_last columns. However, if it's not, then I want it to check the other 3 columns. Once it comes across a value, it should display the table data. This is only happening with one account. Please help!
http://www.experts-exchang
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If for some reason you still get the same error then something else is missing one earlier in the code (possibly). It really is a very specific message and related to a missing Then in an If line. I saw no other problems and would think, if you are still getting the error, the problem is in fixing the code so please double check the page you run.
If you still have a problem or question please let us know but provide a little more response than "same thing." :)
bol
Business Accounts
Answer for Membership
by: DanielWilsonPosted on 2009-10-26 at 17:30:39ID: 25668353
Might some of the values be NULL? You need to check for null before checking/comparing field values.
Makes for some ugly VBScript ...