MajorTechie
Programmer
Hello,
I have a VERY simple piece of code that doesn't work. I am trying to "compare" the values of a drop down box (called DCOutput) and an input box (called CustomVDC) and give a value to a variable (called DCOutput) depending on the former two values.
Basically, if the user leaves the drop down unselected (thus a value of ""
or chooses "CustomVDC", then I want the variable DCOutput to take on the CustomVDC value. Here's the code:
If (Session("DCOutput"
= "CustomVDC" & Session("CustomVDC"
= ""
or (Session("DCOutput"
= "" & Session("CustomVDC"
= ""
Then
DCOutput = " "
ElseIf Session("DCOutput"
= "CustomVDC" Then
DCOutput = Session("CustomVDC"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Else
DCOutput = Session("DCOutput"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
End If
I have a VERY simple piece of code that doesn't work. I am trying to "compare" the values of a drop down box (called DCOutput) and an input box (called CustomVDC) and give a value to a variable (called DCOutput) depending on the former two values.
Basically, if the user leaves the drop down unselected (thus a value of ""
If (Session("DCOutput"
DCOutput = " "
ElseIf Session("DCOutput"
DCOutput = Session("CustomVDC"
Else
DCOutput = Session("DCOutput"
End If