ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,738
- Office Version
- 2007
- Platform
- Windows
Hi,
I have the code below which works fine.
I have now added another Image box called Image2 and asking for some advice please in reference to also load a second photo into it.
Currently the working code below only loads a photo into Image1.
I am looking for advice to edit the code so at the same time also load a photo into Image2
Many Thanks & have a nice day.
I have the code below which works fine.
I have now added another Image box called Image2 and asking for some advice please in reference to also load a second photo into it.
Currently the working code below only loads a photo into Image1.
I am looking for advice to edit the code so at the same time also load a photo into Image2
Code:
Private Sub TextBox10_Change()If Me.TextBox10.Value = "HU 64" Then
Image1.Picture = LoadPicture("C:\Users\Ian\Desktop\REMOTES ETC\LOCK PICKING IMAGES\HU64.jpg")
ElseIf Me.TextBox10.Value = "HU 66 GEN 1" Then
Image1.Picture = LoadPicture("C:\Users\Ian\Desktop\REMOTES ETC\LOCK PICKING IMAGES\HU66GEN1.jpg")
ElseIf Me.TextBox10.Value = "HU 66 GEN 2" Then
Image1.Picture = LoadPicture("C:\Users\Ian\Desktop\REMOTES ETC\LOCK PICKING IMAGES\HU66GEN2.jpg")
ElseIf Me.TextBox10.Value = "HU 66 GEN 3" Then
Image1.Picture = LoadPicture("C:\Users\Ian\Desktop\REMOTES ETC\LOCK PICKING IMAGES\HU66GEN3.jpg")
ElseIf Me.TextBox10.Value = "HU 92" Then
Image1.Picture = LoadPicture("C:\Users\Ian\Desktop\REMOTES ETC\LOCK PICKING IMAGES\HU92.jpg")
ElseIf Me.TextBox10.Value = "HU 100" Then
Image1.Picture = LoadPicture("C:\Users\Ian\Desktop\REMOTES ETC\LOCK PICKING IMAGES\HU100.jpg")
ElseIf Me.TextBox10.Value = "HU 101" Then
Image1.Picture = LoadPicture("C:\Users\Ian\Desktop\REMOTES ETC\LOCK PICKING IMAGES\HU101.jpg")
ElseIf Me.TextBox10.Value = "NSN 14" Then
Image1.Picture = LoadPicture("C:\Users\Ian\Desktop\REMOTES ETC\LOCK PICKING IMAGES\NSN14.jpg")
ElseIf Me.TextBox10.Value = "SIP 22" Then
Image1.Picture = LoadPicture("C:\Users\Ian\Desktop\REMOTES ETC\LOCK PICKING IMAGES\AWAITINGIMAGE.jpg")
End If
End Sub
Many Thanks & have a nice day.