Select Case

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello all,

I can't seem to figure out why the second case doesnt work properly. Could
someone give me a hint what I'm doing wrong? There is no syntax error.
I've tested it (the second case) with an obvious choice that should cause it
to function but in F8'ing, all seems as it should, but it simply doesn't
catch. What am I missing? It's probably the dumbest thing.

Select Case DLB_Template.Text
Case "IJNPST", "WANPST", "IJNPST3", "1UPNPST", "NODLB"
If Form1.Segmented.Value = "1" Then
MsgBox "Improper DLB Template choice for a segmented job!",
vbOKOnly, "Choose again " & Form1.Employee
Exit Sub
End If

Case InStr(1, DLB_Template.Text, "SEG", 1) <> 0
If Form1.Segmented.Value = "1" Then
MsgBox "This DLB template is already set up for job
segmentation. All bets are off!" _
& vbCrLf & "You should choose another DLB Template file!" &
vbCrLf & "Exiting EXECUTE", vbOKOnly, "Choose again " & Form1.Employee
Exit Sub
End If
End Select


.



Relevant Pages

  • Re: Help with solutions to two DEs
    ... *slaps his forehead* oops, I just completely looked over how to solve ... for the second DE, thanks for that hint. ... Sam J. ... Prev by Date: ...
    (sci.math)
  • rosegarden compile problem
    ... Having browsed thru rosegarden's site to find a hint, but not found, i try to ... MidiProgram.h:43: syntax error before `(' ... MidiProgram.h:56: template argument 1 is invalid ...
    (comp.os.linux.setup)
  • Re: How do I send an attachment From My Documents?
    ... Hint: It's not Word. ... > lost and confused wrote: ... >>>Did you have a question about Microsoft Word? ... Prev by Date: ...
    (microsoft.public.word.docmanagement)
  • Re: change date format
    ... (Hint: it ... has to do with 'string' data.) ... Prev by Date: ...
    (comp.lang.python)
  • Is there some library to help me? (scaning virus)
    ... please any hint to do it. ... Frank ... Prev by Date: ...
    (borland.public.delphi.thirdpartytools.general)