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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top