J
J.Alladien
Dear All,
I recently downloaded the Pictures2K MDB and I applied it to my pictures and
it works fine in the forms!
However the moment I preview it in a report some pictures get loaded onto
the report and some DON,T (please note that all items have their respective
pictures) .
This makes my Catalog very unreliable,I kept getting error 2114 :
Macces does not support the format of this file(fe PIC001) or
file is too large ,try converting the file to bitmap or gif format!
To "bypass" this error I did the following in the report:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
On Error GoTo Err_cmdClose_Click
'set the picture path
Me.ImgStock.Picture = pathname & Me.txtStockGraph
Exit_cmdClose_Click:
Exit Sub
Err_cmdClose_Click:
If Err.Number = 2220 Or 2114 Then 'can't find the file
Resume Next
Else
MsgBox Err.Description
Resume Exit_cmdClose_Click
End If
End Sub
This worked as I did not get err 2114 anymore!
However If I preview the report now, items (who have pictures included in
myfolder)come up "BLANK" in the report!
When I load the same items in the form I have no problem cause all the
pictures get loaded! error 2114 also does not make sense to me since let's
say pic 10(10 5kb) could not get loaded due too err 2114 but pic 11 (whose
size is 140 kb) gets loaded onto the report without a problem!
Are my pics too big? is that the problem?( they vary form 105-160 kb) In
that case is there a way too filter out the records where error 2114 occurs
so that I can then resize the pics because to write down the codes one by one
each time the error message occurs is not done!
Please help!
I recently downloaded the Pictures2K MDB and I applied it to my pictures and
it works fine in the forms!
However the moment I preview it in a report some pictures get loaded onto
the report and some DON,T (please note that all items have their respective
pictures) .
This makes my Catalog very unreliable,I kept getting error 2114 :
Macces does not support the format of this file(fe PIC001) or
file is too large ,try converting the file to bitmap or gif format!
To "bypass" this error I did the following in the report:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
On Error GoTo Err_cmdClose_Click
'set the picture path
Me.ImgStock.Picture = pathname & Me.txtStockGraph
Exit_cmdClose_Click:
Exit Sub
Err_cmdClose_Click:
If Err.Number = 2220 Or 2114 Then 'can't find the file
Resume Next
Else
MsgBox Err.Description
Resume Exit_cmdClose_Click
End If
End Sub
This worked as I did not get err 2114 anymore!
However If I preview the report now, items (who have pictures included in
myfolder)come up "BLANK" in the report!
When I load the same items in the form I have no problem cause all the
pictures get loaded! error 2114 also does not make sense to me since let's
say pic 10(10 5kb) could not get loaded due too err 2114 but pic 11 (whose
size is 140 kb) gets loaded onto the report without a problem!
Are my pics too big? is that the problem?( they vary form 105-160 kb) In
that case is there a way too filter out the records where error 2114 occurs
so that I can then resize the pics because to write down the codes one by one
each time the error message occurs is not done!
Please help!