G
Guest
I have a form that has a button to add a path to a photo. (see below
code(code borrowed from Northwind db))
It works great but I need it to store the complete path...
It stores -
I:\Monthly Project Updates\Project Reporting\Bell_Bonanza_Page_2.tif
I need full path-
\\serv7\w720\Dept\Service-Projects\Monthly Project Updates\Project
Reporting\\Bell_Bonanza_Page_2.tif
Dim res As Boolean
Dim fName As String
Path = CurrentProject.Path
On Error Resume Next
errormsg.Visible = False
If Not IsNull(Me!Photo) Then
res = IsRelative(Me!Photo)
fName = Me![ImagePath]
If (res = True) Then
fName = Path & "\" & fName
End If
Me![ImageFrame].Picture = fName
showImageFrame
Me.PaintPalette = Me![ImageFrame].ObjectPalette
If (Me![ImageFrame].Picture <> fName) Then
hideImageFrame
errormsg.Caption = "Picture not found"
errormsg.Visible = True
End If
Else
hideImageFrame
errormsg.Caption = "Click Add/Change to add picture"
errormsg.Visible = True
End If
code(code borrowed from Northwind db))
It works great but I need it to store the complete path...
It stores -
I:\Monthly Project Updates\Project Reporting\Bell_Bonanza_Page_2.tif
I need full path-
\\serv7\w720\Dept\Service-Projects\Monthly Project Updates\Project
Reporting\\Bell_Bonanza_Page_2.tif
Dim res As Boolean
Dim fName As String
Path = CurrentProject.Path
On Error Resume Next
errormsg.Visible = False
If Not IsNull(Me!Photo) Then
res = IsRelative(Me!Photo)
fName = Me![ImagePath]
If (res = True) Then
fName = Path & "\" & fName
End If
Me![ImageFrame].Picture = fName
showImageFrame
Me.PaintPalette = Me![ImageFrame].ObjectPalette
If (Me![ImageFrame].Picture <> fName) Then
hideImageFrame
errormsg.Caption = "Picture not found"
errormsg.Visible = True
End If
Else
hideImageFrame
errormsg.Caption = "Click Add/Change to add picture"
errormsg.Visible = True
End If