V
Veli Izzet
Hi,
I need to put the picture of the item on the report. I have a piece of
code that I can do it on the current event of a form, but I could not
get that code to work with the report.
Needless to say, one field keeps the path to the pictures (in jpg), and
pictures are not in the database.
The code for the form is:
Private Sub Form_Current()
On Error Resume Next
If Len(Dir(CurrentProject.Path & "\slides\" & Me![KOD] & ".jpg")) Then
Me![ImagePic].Picture = CurrentProject.Path & "\slides\" & Me![KOD]
& ".jpg"
Else
Me![ImagePic].Picture = ""
End If
End Sub
How do I modify the code?
TIA
I need to put the picture of the item on the report. I have a piece of
code that I can do it on the current event of a form, but I could not
get that code to work with the report.
Needless to say, one field keeps the path to the pictures (in jpg), and
pictures are not in the database.
The code for the form is:
Private Sub Form_Current()
On Error Resume Next
If Len(Dir(CurrentProject.Path & "\slides\" & Me![KOD] & ".jpg")) Then
Me![ImagePic].Picture = CurrentProject.Path & "\slides\" & Me![KOD]
& ".jpg"
Else
Me![ImagePic].Picture = ""
End If
End Sub
How do I modify the code?
TIA