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
Part time moderator
 
isladogs's Avatar
 
Join Date: Jan 2017
Location: Somerset, UK
Posts: 6,890
Thanks: 92
Thanked 1,694 Times in 1,572 Posts
isladogs is just really nice isladogs is just really nice isladogs is just really nice isladogs is just really nice isladogs is just really nice
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.


Colin
Previously known as ridders : 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.
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: 664
Thanks: 0
Thanked 208 Times in 195 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
Part time moderator
 
isladogs's Avatar
 
Join Date: Jan 2017
Location: Somerset, UK
Posts: 6,890
Thanks: 92
Thanked 1,694 Times in 1,572 Posts
isladogs is just really nice isladogs is just really nice isladogs is just really nice isladogs is just really nice isladogs is just really nice
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, 130 views)
Attached Files
File Type: accdb ButtonGotFocusDEMO.accdb (448.0 KB, 42 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.


Colin
Previously known as ridders : 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.

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 11:17 PM.


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

Sponsored Links

How to advertise

Media Kit


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