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 but in the reports I get errors# 2114
code being used in forms:
Private Sub Form_Current()
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 Then 'can't find the file
Resume Next
Else
MsgBox Err.Description
Resume Exit_cmdClose_Click
End If
End Sub
CODE BEING USED IN REPORT IS:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.ImgStock.Picture = pathname & Me.txtStockGraph
End Sub
I have about 1500 pics and all of them open in the forms but when I preview
them in a report I get err 2114 which claims that fe pic10 is too large to be
formatted but that does not make sense to me since there are much larger pics
then pic10 which open up fine,why do they open up in the forms but not in the
reports?
Hope somebody can help me!
I recently downloaded the Pictures2K MDB and I applied it to my pictures and
it works fine in the forms but in the reports I get errors# 2114
code being used in forms:
Private Sub Form_Current()
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 Then 'can't find the file
Resume Next
Else
MsgBox Err.Description
Resume Exit_cmdClose_Click
End If
End Sub
CODE BEING USED IN REPORT IS:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.ImgStock.Picture = pathname & Me.txtStockGraph
End Sub
I have about 1500 pics and all of them open in the forms but when I preview
them in a report I get err 2114 which claims that fe pic10 is too large to be
formatted but that does not make sense to me since there are much larger pics
then pic10 which open up fine,why do they open up in the forms but not in the
reports?
Hope somebody can help me!