Quick question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Im having problems working out some logic in an 'If statement
This specific part of my code does no run for sum reason....

ElseIf ((CBoxSession.Text = "All") And Not (CBoxLayout.Text = "All")) The

Can anyone tell me what im doin wrong
What i want to achieve is to run a specific piece of code if the value of one combobox is 'All' while the value of the other is not 'All
 
Just do the following
ElseIf ((CBoxSession.Text = "All") And (CBoxLayout.Text <> "All")) The

Hope this help
Gordon
 
Hi Varun,

I think this is my favorite in this

ElseIf CBoxSession.Text = "All" AndAlso CBoxLayout.Text <> "All" Then

When the first is evaluated and not true it does not do the second.

I hope this helps?

Cor
 
Back
Top