Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include Image

Status
Not open for further replies.

fed

Programmer
Joined
Sep 26, 2002
Messages
3
Location
ZA
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
 
Okay. It's working.
By just replacing

Else: Me![Bild02].Picture = ""
with
Else: Me![Bild02].Properties("Visible") = False

Now I'd like to auto-adjust the detail section's height. But I'll find that one out myself as well, I guess.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top