• Command Button (Access 2002)

    Author
    Topic
    #412920

    I have a set of command buttons on the bottom of my form; I like to change the background color of the command button once I have clicked on the button. This way I know which command button was just clicked. Does anyone have any ideas?

    Viewing 1 reply thread
    Author
    Replies
    • #907039

      You can’t change the background colour of a command button.

      To achieve what you want you need to use Labels instead of Command buttons. Labels have an Onclick event, and can be given the same raised appearance as command buttons.

      With labels you can set the Backcolor in code, and the forecolor, and the caption etc.

      • #907167

        You can’t customize them after opening the customize menu then right-clicking on the button?

        • #907169

          The customizable option is the forecolor, not the backcolor, which is determined by windows settings.

        • #907170

          The customizable option is the forecolor, not the backcolor, which is determined by windows settings.

        • #907171

          Tools | Customize is for menus and toolbars. This thread is about command buttons on forms. The background color of Access command buttons is governed by Windows, not by Access (it is the color for 3D objects in the Appearance tab of the Display Properties control panel.)

        • #907172

          Tools | Customize is for menus and toolbars. This thread is about command buttons on forms. The background color of Access command buttons is governed by Windows, not by Access (it is the color for 3D objects in the Appearance tab of the Display Properties control panel.)

      • #907168

        You can’t customize them after opening the customize menu then right-clicking on the button?

    • #907040

      You can’t change the background colour of a command button.

      To achieve what you want you need to use Labels instead of Command buttons. Labels have an Onclick event, and can be given the same raised appearance as command buttons.

      With labels you can set the Backcolor in code, and the forecolor, and the caption etc.

    Viewing 1 reply thread
    Reply To: Command Button (Access 2002)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: