Image too large

J

Jason

How can I check the size (kb) of a jpg file before I link it to the OLE
object? So I can have a message pop up before attempting to link.

Thanks,
J.
 
S

Stuart McCall

Jason said:
How can I check the size (kb) of a jpg file before I link it to the OLE
object? So I can have a message pop up before attempting to link.

Thanks,
J.

SizeOfJpg = FileLen("c:\temp\MyJpg.jpg")
 
J

Jason

Thanks,
Didn't know it was that simple. Forgot to ask what is the size limit for
photoeditor in access? (From access code it is saying the file is too large
for photoedito)
 
J

Jason

For some reason the file that is failing is 1207kb and a file of 3284kb
works in Access. What I have done is use Corel to resample to 80,90 and 99%
of original file size - all fail in MS Photo editor except for the 80%
reduced one. All the resampled ones (80, 90 and 99%) embed OK in access even
though their file sizes are now larger. There must be something else that is
failing the 1.207 Mb file even though it has the highest pixels (3576 x
3420, 1207kb) compared to the 99% (3218 x 3386, 3284kb) one.
 

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