I have a 2007 Access database to inventory my supplies. I was embedding pictures into the various forms and noticed that my database was exploding in size.In an effort to cut down on the size of my database, I followed the instructions on this truly incredible thread, wherein instead of imbedding pictures, you simply store a path to the picture:
thread702-289543
I started with just one section of my database. On this particular form's detail property I added this code to the On Paint event procedure:
Me![PictureImage].Properties("Picture") = Me![PicPath]
So when I opened my form, the image object PictureImage was to find the picture on my computer designated by PicPath and display it.
My table holds 35 records and when I was first implementing this only one record held a path. I changed from Form Design to Form View and it worked (happy dance!). Then I closed the database and walked away for an hour.
When I came back, I went back to that form, but it did not display correctly and the term "calculating" was seen in the bottom left hand corner. I thought maybe it was stuck because the other records did not have paths, so I copied the same path into my other records (as a quick way to fill the field for the time being), but my form still will not display.
Any ideas? Thanks in advance for your help . . .
thread702-289543
I started with just one section of my database. On this particular form's detail property I added this code to the On Paint event procedure:
Me![PictureImage].Properties("Picture") = Me![PicPath]
So when I opened my form, the image object PictureImage was to find the picture on my computer designated by PicPath and display it.
My table holds 35 records and when I was first implementing this only one record held a path. I changed from Form Design to Form View and it worked (happy dance!). Then I closed the database and walked away for an hour.
When I came back, I went back to that form, but it did not display correctly and the term "calculating" was seen in the bottom left hand corner. I thought maybe it was stuck because the other records did not have paths, so I copied the same path into my other records (as a quick way to fill the field for the time being), but my form still will not display.
Any ideas? Thanks in advance for your help . . .