What is wrong : database field use as variable in VBA ???

S

Sale

I have a report with image control named IMAGE5 in which I wanna to
display a picture .
Path to the picture is stored in table IMAGE column PATH.

The code based on details format event is :

Option Compare Database
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Image5.Picture = Me![PATH]
End Sub

but it generates a run-time error - because of null values in Me!
[PATH] .
I have set Report Record Source=IMAGE ( table with column PATH that
stores paths to the image on disc )

How can be [PATH] empty ?

What is wrong !
Thanx, Sasa
 
Top