jerryczarnowski
Registered User.
- Local time
- Today, 14:24
- Joined
- Jan 29, 2012
- Messages
- 31
Hello,
I have a routine that sets the name property of an image control to a string variable representing the directory path, the value of a field, and a file extension. The code resides in the FormCurrent() event so when the user clicks on the next record, the image control updates. Works great in 2010 but in 2007, it always shows the previous record. Below is the code...Is there some additional code needed?
Private Sub Form_Current()
Dim PartPicName As String
PartPicName = "C:\part_pictures\" & Me.[Part Number].Value & ".jpg"
PartPicNameImage.Picture = PartPicName
End Sub
I do my testing at home on 2010 but work has 2007.
Any help is greatly appreciated.
Thanks, Jerry
I have a routine that sets the name property of an image control to a string variable representing the directory path, the value of a field, and a file extension. The code resides in the FormCurrent() event so when the user clicks on the next record, the image control updates. Works great in 2010 but in 2007, it always shows the previous record. Below is the code...Is there some additional code needed?
Private Sub Form_Current()
Dim PartPicName As String
PartPicName = "C:\part_pictures\" & Me.[Part Number].Value & ".jpg"
PartPicNameImage.Picture = PartPicName
End Sub
I do my testing at home on 2010 but work has 2007.
Any help is greatly appreciated.
Thanks, Jerry