selahlynch
Registered User.
- Local time
- Tomorrow, 02:50
- Joined
- Jan 3, 2010
- Messages
- 63
I have a form that is bound to a table. On this form is an image control. The picture property of this image control is set to a path which is a field in the table.
When I navigate to new records, I update the image using the following code.
It works great EXCEPT when I go to add a new record. When I'm adding the new record, the Me.Recordset.Bookmark is still bookmarked at the previous record. So, when I update the picture property of my image, I get the picture from the previous record. This is confusing to the user.
Any ideas about how to fix this?
When I navigate to new records, I update the image using the following code.
Code:
Private Sub Form_Current()
If IsNull(Me.Recordset!PictureFile) Then
Me.Image6.Picture = ""
Else
Me.Image6.Picture = CurrentProject.Path & "\database1 photos\" & Me.Recordset!PictureFile
End If
End Sub
Any ideas about how to fix this?
Last edited: