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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image in report shows for empty field

Status
Not open for further replies.
Mar 31, 2003
22
EU
I have the following code ...

SUB DETAIL_FORMAT
if isnull(me![txtImagePath]) then
me![iImage].picture = ""
else
me![iImage].picture = me![txtImagePath]
END SUB

this works fine (image is displayed) where the fieldname iImage has a path pointing to an image but when the field is empty or no path it still shows the previous image.

Any ideas out there ?
 
I always keep a small blank image file that I use if there is no real value.

Duane
MS Access MVP
 
SUB DETAIL_FORMAT
if isnull(me![txtImagePath]) then
me![iImage].Visible = False
else
me![iImage].Visible = True
me![iImage].picture = me![txtImagePath]
END SUB


Duane
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top