Solved

Show hidden are if "ELSE"

Posted on 2013-06-24
2
305 Views
Last Modified: 2013-06-24
I have the following statement to show an area if a series of conditions are met, I need to add code to display area2 if 'else'

---

<%If (Qnrpg1.EOF And Qnrpg1.BOF) Or ((Not Qnrpg1.EOF Or Not Qnrpg1.BOF) AND (Qnrpg1.Fields.Item("MiddleNm").Value = "True")) Then %>
   
REGION 1

<% Else ' MiddleNm%>

REGION 2
     
   <% End If ' MiddleNm%>

Is the above the correct syntax ?
0
Comment
Question by:amucinobluedot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 39271910
Yes just drop the  ' MiddleNm inside the <% Else and the <% End If
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39271920
sedwick, the MiddleNm is commented so that is ok
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Saving Web Page as PDF 9 78
Political Map of Europe - Wikipedia? 4 43
why is my slideshow so small on this wordpress site? 7 39
change site header 8 28
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question