.ico error message

G

Guest

When trying to add an icon .ico file to a command button, I get the following
error message: (my database) doesn't support the format of the file (file
path).ico or the file is too large. Try converting the file to bmp or gif
format.

Is this normal? I have never added an .ico (icon) file to a button before,
but according to the Access help file it is possible. What am I doing wrong?


Also, is it possible to "replace" the command button with an icon rather
than just add it to the face of the button? I am trying to give my forms a
new / clean look.

Thanks in advance for you help.
 
D

Douglas J. Steele

I just successfully added an ico to a command button (Access 97: that's all
I have installed on this machine).

Another option is to add an Image control. It has a Click (and DoubleClick)
event that you can use the same as a button.
 
G

Guest

I am using 2002. In the design veiw of my form, I went to properties >
Format > Picture > Browse > Navigated to my .ico files, then it gave me the
error when I tried to use the icon as my picture.

I could do it as an image control as Douglas suggests, but I would like to
learn what I am doing wrong to recieve this error.

Gina, when you added the .ico to the command button, does it replace the
button or does the image appear on the face of the button leaving the
button's perimeter visible behind the image?

Thank you in advance
 
G

Gina Whipp

Boston_Architect...

It sounds like you tried to add the .ico to the form and not the button,
try:

1. Go to design view of your form, make sure the Properties window for the
form is open.
2. Navigate to the command button you want your .ico to appear on and click
once.
3. In the Properites window you should see: Command Button:
TheNameOfYourCommandButton
4. In the Properties window on the Picture line click the Build button
(...)
5. Navigate to your .ico file and select it, click all of the okays and it
should be inserted on your button.

OR

If you know the exact path of your file change Step 4 to:

4. Type c:\Icons\computer\yellowprinter.ico (that is the path of my .ico
files)

HTH,
Gina Whipp
 
G

Gina Whipp

Forgot to answer part 2.... The .ico file is on the button, so yes the
button is still visible.
 
G

Guest

Thanks Gina,

I did have my command button highlighted when I did the steps that I
mentioned I just forgot to include that step in my explanation. So
essentially I did exactly as you (more clearly) described. Unfortunately I
continue to get the error message.

However, I will not be using this technique anyway. My goal is to replace
the command button with the icon (the icons that I want to use already look
like buttons) so I will probably use Douglas's suggestion to use image
control with a click function.

I am building this database for my architecture firm, and we are very very
visually oriented (and picky) so it is important for me to get the GUI just
right. Otherwise I will suffer a lot of criticism!

Time to consult my "Access for Dummies" book :)
---------------------------------------------------------
 
G

Guest

Gina, you were very helpful. If you hadn't told me that the command button
would remain with just a picture on it's face, I would still be struggling to
make it work. You're answer informed me to find a different path. Thank you
for that.
 

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