![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
You are in the wrong forum to get an Access question answered. But ot br brief, the oLE storage in Access is just that - it isn't storing the image, but a complete OLE reference to the picture AND the app responsible for it, which is why you get amazing bloat in the database as a result. The data type is also OLE, which is why you cannot just "view" the data in an image control - you have to tell access to activate the application responsible for processing the OLE storage... IAC, you don't store pictures in MDB files. The most optimal way is to store the filename in a text field, and write some code to load the image into an image control whenever required using the Picture property of the image control (usually the Form's Current event). You do the same thing for reports using the Format event of the relvant section. When i insert a picture as an OLE object in my database how come it says that it is a package instead of a JPG or picture type of file ?? When i run the database all i can see is the reference to the file. But when i double click on the field, the pictuer will pop up in WIndows Picture and Fax Viewer. WHen i try to edit it by using object packager, it would not let me select "picture" option instead it is just under "description" option. Even in design view, the fields that contain the OLE PICTURE (i tries both embedded and linked) I have to double click it to view my JPG picture and it was listed under "package". Shouldnt a JPG picture be listed undfer JPG or Image ??? |
#2
| |||
| |||
|
|
hello, actually I had the same question. I can not display a .jpg picture into a bound OLE object frame, all I get is the filename.jpg reference. Do I have to set the table value to a text value and not an OLE object? I have a person I talked to in Arkansas, and he dosent have these problems. His picture comes up fine. He sent me his database and I only got the filename.jpg reference, not the picture. Do I have to set preferences for microsoft access? im actually using 2000, is this the same for 2002? Originally posted by Peter Fallon You are in the wrong forum to get an Access question answered. But ot br brief, the oLE storage in Access is just that - it isn't storing the image, but a complete OLE reference to the picture AND the app responsible for it, which is why you get amazing bloat in the database as a result. The data type is also OLE, which is why you cannot just "view" the data in an image control - you have to tell access to activate the application responsible for processing the OLE storage... IAC, you don't store pictures in MDB files. The most optimal way is to store the filename in a text field, and write some code to load the image into an image control whenever required using the Picture property of the image control (usually the Form's Current event). You do the same thing for reports using the Format event of the relvant section. When i insert a picture as an OLE object in my database how come it says that it is a package instead of a JPG or picture type of file ?? When i run the database all i can see is the reference to the file. But when i double click on the field, the pictuer will pop up in WIndows Picture and Fax Viewer. WHen i try to edit it by using object packager, it would not let me select "picture" option instead it is just under "description" option. Even in design view, the fields that contain the OLE PICTURE (i tries both embedded and linked) I have to double click it to view my JPG picture and it was listed under "package". Shouldnt a JPG picture be listed undfer JPG or Image ??? -- Posted via http://dbforums.com |
#3
| |||
| |||
|
|
When i insert a picture as an OLE object in my database how come it says that it is a package instead of a JPG or picture type of file ?? When i run the database all i can see is the reference to the file. But when i double click on the field, the pictuer will pop up in WIndows Picture and Fax Viewer. WHen i try to edit it by using object packager, it would not let me select "picture" option instead it is just under "description" option. Even in design view, the fields that contain the OLE PICTURE (i tries both embedded and linked) I have to double click it to view my JPG picture and it was listed under "package". Shouldnt a JPG picture be |
![]() |
| Thread Tools | |
| Display Modes | |
| |