G
Guest
I've got some code that doesn't work:
Public Function OConsolTest(Comp As Variant, Acct As Variant)
Select Case Comp
Case TDEL
Select Case Acct
Case 100000 To 150000
OConsolTest = "TDEL REVENUE"
Case Else
OConsolTest = "TDEL REVENUE ERROR"
End Select
Case Is <> TDEL
Select Case Acct
Case 100000 To 150000
OConsolTest = "OTHER REVENUE"
Case Else
OConsolText = "OTHER REVENUE ERROR"
End Select
End Select
End Function
I can never get this to handle the <> TDEL section of the code. What's wrong?
Public Function OConsolTest(Comp As Variant, Acct As Variant)
Select Case Comp
Case TDEL
Select Case Acct
Case 100000 To 150000
OConsolTest = "TDEL REVENUE"
Case Else
OConsolTest = "TDEL REVENUE ERROR"
End Select
Case Is <> TDEL
Select Case Acct
Case 100000 To 150000
OConsolTest = "OTHER REVENUE"
Case Else
OConsolText = "OTHER REVENUE ERROR"
End Select
End Select
End Function
I can never get this to handle the <> TDEL section of the code. What's wrong?