Form got focus all fields (1 Viewer)

Sticky99

Registered User.
Local time
Today, 13:19
Joined
Nov 9, 2019
Messages
61
Could anybody tell me if it is possible to set gotfocus on form loading, what I am trying to achieve is to change colour of each field when selecting. I can do this on individual fields but would like to set this parameters for all field service on loading the form.

Thanks guys.
 

Sticky99

Registered User.
Local time
Today, 13:19
Joined
Nov 9, 2019
Messages
61
Thank you Minty, that is exactly what I’m looking for.

Much appreciated 😊
 

Minty

AWF VIP
Local time
Today, 21:19
Joined
Jul 26, 2013
Messages
10,371
You are welcome.

As a newcomer, you could do a lot worse than to carefully read all of Allen's pages and tips.
 

missinglinq

AWF VIP
Local time
Today, 16:19
Joined
Jun 20, 2003
Messages
6,423
I go to Allen's site anytime I run into a new problem, and have done so for years...it simply can't be beat...but this particular solution is really very simple:

In Form Design View:
  • Hold down <Shift> and select each Control to be included
  • Go to the Ribbon - Design Tab and click on Conditional Formatting
  • Under Condition 1 select Field Has Focus from the dropdown box
  • Select the formatting you desire using the BackColor (the paint bucket) and/or ForeColor icon(s)
  • Click on OK
You're done. Takes less than a minute...regardless of the number of Controls...and requires no VBA code!

Linq ;0)>
 

Sticky99

Registered User.
Local time
Today, 13:19
Joined
Nov 9, 2019
Messages
61
I go to Allen's site anytime I run into a new problem, and have done so for years...it simply can't be beat...but this particular solution is really very simple:

In Form Design View:
  • Hold down <Shift> and select each Control to be included
  • Go to the Ribbon - Design Tab and click on Conditional Formatting
  • Under Condition 1 select Field Has Focus from the dropdown box
  • Select the formatting you desire using the BackColor (the paint bucket) and/or ForeColor icon(s)
  • Click on OK
You're done. Takes less than a minute...regardless of the number of Controls...and requires no VBA code!

Linq ;0)>
Thanks missinglinq
 

Users who are viewing this thread

Top Bottom