Can't use a GIF as a picture

mcalex

Registered User.
Local time
Today, 16:21
Joined
Jun 18, 2009
Messages
141
Hi all, I get the following error when trying to set the picture property of a toggle button:

Microsoft Office Access doesn't support the format of the file 'C:\Temp\btnOn.GIF,' or the file is too large. Try converting the file to BMP or GIF format.

It's a 2kb GIF created in ms-paint.

When I try to set it programmatically, the above error is identified as Runtime Error 2114

I can, however use the same gif in an Image control on the form.

Does anyone know why this is? When I hit <F1> I get a blank help window. Net searches suggested filters were missing. I installed the MS Office converter pack, but it didn't help.

It works if I use a bmp, but the bitmap version of the image is 18kb. I know that's not huge, but it's being used in a few places, and it adds up.

cheers

mcalex
 
The default button image size is only 16 x 16 pixels.
Larger images are rescaled so you might as well make them this size from the start.

If you make the button bigger then I expect you could adjust the pixel count proportionately.
 

Users who are viewing this thread

Back
Top Bottom