Image change causes 'stack full' why?

  • Thread starter Thread starter Bingo
  • Start date Start date
B

Bingo

Second post...

I have a table of products (10k of them), and a column which contains
an elemental filename of a picture. In the Current event, I put the
following code. It works for a while. After 10 or 15 records, I get
"stack full." I'm using the standard "Image" object as pic1.

Is there something wrong with this? Is there something I should be
deleting/closing?


pic1.Picture = "d:\webs\catalog_images\big\" & Me![image file]
 
Is the line of code posted the only code initiated in the
OnCurrent event? If not, please post all the code for the
procedure your running.
 
Is the line of code posted the only code initiated in the
OnCurrent event? If not, please post all the code for the
procedure your running.
-----Original Message-----
Second post...

I have a table of products (10k of them), and a column which contains
an elemental filename of a picture. In the Current event, I put the
following code. It works for a while. After 10 or 15 records, I get
"stack full." I'm using the standard "Image" object as pic1.

Is there something wrong with this? Is there something I should be
deleting/closing?


pic1.Picture = "d:\webs\catalog_images\big\" & Me![image file]

.
Nothing really different, but here is the actual code:

On Error GoTo current_failed
Dim src As String
src = "d:\webs\catalog_images\big\" & Nz(Me![image
file],"photonotavail.jpg")
pic1.Picture = src
Exit Sub
current_failed:
Debug.Print Err.Description
 
Back
Top