wie kann ich überprüfen, ob die TextBox25 z.B. 3010 enthält.
TextBox8= 30
TextBox11 = 10
TextBox25 = BF3010-1.0122
So ging es nicht:
Private Sub CommandButton1_Click()
If Left(TextBox25, 3) Like "[A-Z]" & TextBox8 & TextBox11 _
Or Left(TextBox25, 4) Like "[A-Z]" & TextBox8 & TextBox11 _
Or Left(TextBox25, 5) Like "[A-Z]" & TextBox8 & TextBox11 _
Or Left(TextBox25, 6) Like "[A-Z]" & TextBox8 & TextBox11 _
Or Left(TextBox25, 7) Like "[A-Z]" & TextBox8 & TextBox11 Then
Exit Sub
Else
MsgBox "Ident-Nr. nicht geändert!"
End If
End Sub
Was muss ich ändern?
Gruß
otto