Access World Forums

Access World Forums (
-   Forms (
-   -   [SOLVED] Button highlight (

access17401 09-05-2017 10:12 PM

Button highlight
I am sure there is an easy way of doing this but i can not work it out or find an answer anywhere.

I have a form, with 4 input fields and a button to go to the next record.

I open up on the first field and you can see the cursor, as i tab through, set up via tab order, you see the change in focus, except when you get to the 'next button' you don't notice that it is in focus.

How can i make the button change color as it become the focus, so it might be blue and i tab to the button and it turns red.

isladogs 09-05-2017 11:49 PM

Re: Button highlight
look in the property table for your buttons and you'll see a list of properties for button colours.

Depending on your version of Access you can do that by using Office themes for your buttons

moke123 09-06-2017 12:48 AM

Re: Button highlight
in the format properties of the button you can change backcolor, hovercolor, etc. but i dont think hover or pressed colors fire when tabbing.

you can use the got focus and lost focus events to change the backcolor or change the borderwidth to highlight the control which works when tabbing.

isladogs 09-06-2017 05:45 AM

Re: Button highlight
2 Attachment(s)
Attached is a simple demo to show how you could achieve the effect you want

NOTE: The only button that has any code is the Exit button

access17401 09-06-2017 08:19 PM

Re: Button highlight
That is perfect, just what i wanted and worked a treat. Thank you

All times are GMT -8. The time now is 09:14 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World