[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

conditionals

Asked by sammySeltzer in SQL Server 2005, Active Server Pages (ASP)

Greetings again,

This appears simple enough, yet it isn't working.

I have 2 fields, one called status and the other called state.

Status has 2 values, Open or Closed

'State has several values in dropdown. One of those values is Active.

So, let's make sure Status is not blank
'then check whether open or closed. If open, then state should be active, otherwise, just assign whatever db value is available including blank.

If not Isnull(Status) or Status <> "" Then
   If Status = "Open" Then
       State = "Active"
   else
      State = request.form("State")
  end if
End if

So far, the State is not changing to Active when Status is open or to some other value, including blank value when status is CLosed.

Any ideas?

Thanks a lot as always
[+][-]10/29/09 07:21 AM, ID: 25693968Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/09 07:22 AM, ID: 25693989Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/09 08:24 AM, ID: 25694719Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/09 09:49 AM, ID: 25695624Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/09 10:35 AM, ID: 25696116Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/09 11:02 AM, ID: 25696380Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/09 12:06 PM, ID: 25697082Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625