How to Suppress Import Message?

khwaja

Registered User.
Local time
Tomorrow, 10:42
Joined
Jun 13, 2003
Messages
254
In my report I have a en embedded photo field which basically looks up a photo in the local drive and drops it into the report. Whole thing works good. The only issue is when I fire off the report, I can see message 'importing xxx.jpg from file path.

Is there a way I could suppress this message. I am using following code and tried echo and painting option but no luck.

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Application.Echo False
'Me.Painting = False
Me.ImgStock.Picture = pathname & Me.Photo
'Me.Painting = True
Application.Echo True
End Sub
 
Maybe try instead of the Echo's. It may just work but beyond that - can't help.

Code:
Docmd.SetWarnings False


Docmd.SetWarning True
 
No it does not work, I tried it,. But for the nefit of thiose reading this ghread, the simple soklution is to put following statement in the detail section and that will kind of make it easier to view reports with hundreds of photos but may not necessarily remove the import message. .

Me.ImgStock.Picture = pathname & Me.Photo
 

Users who are viewing this thread

Back
Top Bottom