Results 1 to 7 of 7
  1. #1
    Mclaren is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Feb 2010
    Location
    Johannesburg
    Posts
    164

    Button Icons and MSG Box Icons


    is there a way to change the icon a button may have to my own custom ones, same for message boxes ?

  2. #2
    Datagopherdan is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Dec 2008
    Posts
    220
    Yes. Go to the buttons properties and on the format tab theres an option for picture. You can navigate to the image you want to use in the button.

    Quote Originally Posted by Mclaren View Post
    is there a way to change the icon a button may have to my own custom ones, same for message boxes ?

  3. #3
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    You can also change the picture based on anu event for example:

    here the code attached to the AfterUpdate of Combo2 will change the picture of the Command button according to the value of the Combobox.

    if Me.Combo2=1 then
    Me.Command2.Picture = "C:\Documents and Settings\Siddharth.SIDHARTH\My Documents\Downloads\Icons\Icons\(.ipr).ico"
    else
    Me.Command2.Picture = "C:\Documents and Settings\Siddharth.SIDHARTH\My Documents\Downloads\Icons\Icons\(.MAPIMail).ico"
    end if

    you can use only Bitmap image and Icon files as pictures

  4. #4
    Datagopherdan is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Dec 2008
    Posts
    220
    Maximus,

    Are you developing in 2010? I got the pre-release version a few months back. My users kept having compatibility issues with the references, so I just switched back to 2007. I figure I'll wait until everyone gets up to speed on it. Have you ran into any of that?

    Quote Originally Posted by maximus View Post
    You can also change the picture based on anu event for example:

    here the code attached to the AfterUpdate of Combo2 will change the picture of the Command button according to the value of the Combobox.

    if Me.Combo2=1 then
    Me.Command2.Picture = "C:\Documents and Settings\Siddharth.SIDHARTH\My Documents\Downloads\Icons\Icons\(.ipr).ico"
    else
    Me.Command2.Picture = "C:\Documents and Settings\Siddharth.SIDHARTH\My Documents\Downloads\Icons\Icons\(.MAPIMail).ico"
    end if

    you can use only Bitmap image and Icon files as pictures

  5. #5
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Yes I have switched to 2007 myself.

  6. #6
    Mclaren is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Feb 2010
    Location
    Johannesburg
    Posts
    164
    I am running 2007 and 2003. Primarly i want this for 2003, i hate the old style images.

    Can i change the images used in mesage boxes, i.e the exclamation sign etc ?

  7. #7
    Mclaren is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Feb 2010
    Location
    Johannesburg
    Posts
    164
    also is it possible to hide icons in say a "DLL" file and have access reference them ?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Button on the form
    By Evgeny in forum Forms
    Replies: 6
    Last Post: 04-29-2010, 12:06 AM
  2. Replies: 6
    Last Post: 02-09-2010, 07:53 AM
  3. Command Button Help!
    By arthura in forum Programming
    Replies: 3
    Last Post: 06-30-2009, 12:55 PM
  4. Add/Delete Button
    By ocemy in forum Forms
    Replies: 1
    Last Post: 03-29-2009, 08:08 PM
  5. add a print button
    By gromit95 in forum Forms
    Replies: 0
    Last Post: 08-13-2008, 07:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums