• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 315
  • Last Modified:

Show hidden are if "ELSE"

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
Aleks
Asked:
Aleks
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
Yes just drop the  ' MiddleNm inside the <% Else and the <% End If
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
sedwick, the MiddleNm is commented so that is ok
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now