Discussion Locked

Access: Pictures on Command Buttons

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have two command buttons on an Access 2000 Customers input/edit form to call up Computers and Incidents forms, respectively. I have added pictures over blank space on the button labels, but whenever I click one of the buttons in Form View, thoughthe appropriate form is called up, the pictures on both buttons disappear. I have tried activating the buttons via both macros and VBA and get the same results. Is there a way to keep the pictures visible after clicking the buttons, and if so, how?

7 replies

by sunset1

Ok, I have a solution which may or may not be what you are looking for: Make a label and name it the same as your command button text, then make it look like a button using the raised effect. Make the command button trasparent and bring it forward. Now when you click on the button nothing will disappear. you will have to arrange the picture, button and label to make everything look neat.

Hope this helps.

by darryl severn

Try accessing the properties of the button, and then setting the image property. This will over-ride any caption that you have on the button, so the image does need to be self explanatory and/or include the appropriate text.

by ds_davis

I have tried this, but it doesn't serve the purpose, because I can not edit the image (an .ico file) to include text; therefore I must either use a caption or an image, and what I am looking for is a way to use both on one control, without having the image sent to the back when the button is clicked, or to use the Click event to bring the image forward again. Thanks for trying.

by oup

ds_davis,
select button in design mode and insert picture from the 'insert' menu or select this option on creation with the wizard.
good luck,
oup

by ds_davis

This also does not serve the purpose, because when creating the command button I have to chose between having text or a picture on it, and if I try to insert a picture after chosing text, the picture is inserted in the form, not the button itself, and again, gets sent to the back when the button is clicked.

This discussion is closed to new replies.