Hi. Please help. I'm including pictures in a report.
(code in the detail section / format):
Dim empty As Boolean
empty = IsNull(Me![ImagePath])
If empty = False Then
Me![Bild02].Picture = Me![ImagePath]
Else: Me![Bild02].Picture = ""
End If
ImagePath is a Field in the base Table, containing the path of an image.
The Picture's are loading, but the problem is, I can't get an empty picture for a empty string in the Table, means the Else-part doesn't work. Whenever empty's true, the report will just display the picture of the former path.
Thanks
Fed
(code in the detail section / format):
Dim empty As Boolean
empty = IsNull(Me![ImagePath])
If empty = False Then
Me![Bild02].Picture = Me![ImagePath]
Else: Me![Bild02].Picture = ""
End If
ImagePath is a Field in the base Table, containing the path of an image.
The Picture's are loading, but the problem is, I can't get an empty picture for a empty string in the Table, means the Else-part doesn't work. Whenever empty's true, the report will just display the picture of the former path.
Thanks
Fed