Centralising the use of images as controls in the application

Posted on 2011-05-09
Last Modified: 2012-08-14
Most forms have a left and right arrow to move items from one list box to another.  If we wanted to change this to having 'Add >>' and '<< Remove' buttons and this was defined in one location changing it in that one spot would change the whole application.  How can one do this in Access?
Question by:Voodoo_chile
    LVL 22

    Assisted Solution

    by:Nico Bontenbal
    What I did once was placing hidden buttons on the main form (which is always open in this application) with the pictures. Then on the onopen event of the other form I uses something like
    me.cmdPrev.picture = forms!main.cmdPrev.picture
    LVL 74

    Expert Comment

    by:Jeffrey Coachman
    More info here is required.

    If you want to change what the button displays, simply delete the image from the button's image property, and edit the caption property to:
    Add >>
    << Remove

    "and this was defined in one location changing it in that one spot would change the whole application."
    I am having trouble understanding what this means...

    Again, can you take a step back and clarify the one distinct question here?


    Accepted Solution

    Thanks for advice. I figure out the button image can link to a file as following code
       Me.cmdSelectOption.PictureType = 0 'Set the picture type to Linked
       Me.cmdSelectOption.Picture = CurrentProject.path + "\image\Arrow left.bmp" 'put the image file at the image folder under the current project path.

    Author Closing Comment

    The idea is from the code,
    me.cmdPrev.picture = forms!main.cmdPrev.picture;

    But I would like to make the picture on buttons linked to a bmp file in the folder. This is esay to change.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    In the article entitled Working with Objects – Part 1 (, you learned the basics of working with objects, properties, methods, and events. In Work…
    Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
    In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
    With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now