Solved

Show hidden are if "ELSE"

Posted on 2013-06-24
2
293 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
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 52

Expert Comment

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now