Image change causes 'stack full' why?

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]
 
K

Kevin

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.
 
B

Bingo

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
 

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