
Originally Posted by
S.J.Roger
--in this section there should be code to display the name in the picture box which is taken from th i.d for exzample ScottW468PO4 should display the name Scott.
Usually is the InStr-function used to see if some text has specific content.
In your case Select Case is more useful. (As long as only five options of names are present)
VB Code:
Select Case i_d ' Evaluate I_d.
Case "WallaceW468PO1"
Label1.Caption = "Wallace" '<- May be a label in the picturebox is what you want?
Case "LauderH48PO2"
' and so on
Case "CarnegieA468PO3"
'
Case "ScottW468PO4"
'
Case "DeBruisR468PO5"
Label1.Caption = "DeBruis" '<- May be a label in the picturebox is what you want?
Case Else
' so far no one
End Select