speakers_86
Registered User.
- Local time
- Today, 08:03
- Joined
- May 17, 2007
- Messages
- 1,919
Ive got 5 images on a form using the image control. Will that result in bloat?
Private Sub Form_Current()
On Error Resume Next
Me![ImageFrame].Picture = Me![ImagePath]
End Sub
Thats seems to be working fine, except it doesnt want to work with a relative path.
Your code works fine. Im not using the relative path. It would be nice if I could, but when I tried, it didnt work.
Const strPath As String = "C:\Users\Shawn\Documents\Chaos\V3.0\"
Dim strFullPath As String
strFullPath = strPath & DLookup("[YourFieldNameWithPath]","YourTableNameHere", "[YourIDFieldNameHere]=1")
Me![ImageFrame].Picture = strFullPath
Thanks for the suggestion, but coding the first part of the path kind of defeats the purpose. I am programming on my laptop. When I am done, the db will not be on my laptop. Thats why I was trying to use the relative path, so that once the db is moved, I wont have to change that paths of the images.
Dim strFullPath As String
strFullPath = [COLOR="Red"]CurrentProject.Path & "\" [/COLOR]& DLookup("[YourFieldNameWithPath]","YourTableNameHere", "[YourIDFieldNameHere]=1")
Me![ImageFrame].Picture = strFullPath