Go Back   Access World Forums > Microsoft Access Discussion > Forms

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 09-05-2017, 10:12 PM   #1
access17401
Newly Registered User
 
Join Date: Aug 2017
Posts: 33
Thanks: 14
Thanked 1 Time in 1 Post
access17401 is on a distinguished road
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.

access17401 is offline   Reply With Quote
Old 09-05-2017, 11:49 PM   #2
isladogs
High Noon Moderator
 
isladogs's Avatar
 
Join Date: Jan 2017
Location: Somerset, UK
Posts: 10,993
Thanks: 114
Thanked 3,009 Times in 2,736 Posts
isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold
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
__________________
If this answer has helped, please click the Thanks button and/or click the 'reputation scales' symbol on the left.

Website links:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Colin (Mendip Data Systems)
Access 2010 32-bit, Access 2016 32-bit & 64-bit, SQL Server Express 2014, Windows 10,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


"As we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we do not know. But there are also unknown unknowns the ones we don't know we don't know. It is the latter category that tend to be the difficult ones" Donald Rumsfeld
isladogs is offline   Reply With Quote
Old 09-06-2017, 12:48 AM   #3
moke123
Me.Dirty=True
 
moke123's Avatar
 
Join Date: Jan 2013
Location: Massachusetts
Posts: 764
Thanks: 3
Thanked 232 Times in 218 Posts
moke123 will become famous soon enough
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.

moke123 is offline   Reply With Quote
The Following User Says Thank You to moke123 For This Useful Post:
access17401 (09-06-2017)
Old 09-06-2017, 05:45 AM   #4
isladogs
High Noon Moderator
 
isladogs's Avatar
 
Join Date: Jan 2017
Location: Somerset, UK
Posts: 10,993
Thanks: 114
Thanked 3,009 Times in 2,736 Posts
isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold isladogs is a splendid one to behold
Re: Button highlight

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
Attached Images
File Type: png Capture.PNG (10.0 KB, 184 views)
Attached Files
File Type: accdb ButtonGotFocusDEMO.accdb (448.0 KB, 55 views)
__________________
If this answer has helped, please click the Thanks button and/or click the 'reputation scales' symbol on the left.

Website links:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Colin (Mendip Data Systems)
Access 2010 32-bit, Access 2016 32-bit & 64-bit, SQL Server Express 2014, Windows 10,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
,
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


"As we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we do not know. But there are also unknown unknowns the ones we don't know we don't know. It is the latter category that tend to be the difficult ones" Donald Rumsfeld

Last edited by isladogs; 09-06-2017 at 10:02 AM.
isladogs is offline   Reply With Quote
Old 09-06-2017, 08:19 PM   #5
access17401
Newly Registered User
 
Join Date: Aug 2017
Posts: 33
Thanks: 14
Thanked 1 Time in 1 Post
access17401 is on a distinguished road
Re: Button highlight

That is perfect, just what i wanted and worked a treat. Thank you

access17401 is offline   Reply With Quote
Reply

Tags
button

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlight row oxicottin General 7 12-10-2015 03:54 PM
Highlight Items in a Listbox using a '>=' or '<=' button? kapaw Modules & VBA 3 08-02-2011 01:41 PM
Form button to highlight when their is a record present on another form YNWA Forms 9 11-15-2010 08:00 AM
Highlight row KenHigg Forms 4 01-28-2010 04:42 PM
If this... don't highlight that SueBK Forms 2 05-21-2009 05:39 PM




All times are GMT -8. The time now is 12:41 PM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post


Sponsored Links


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