Host your Web site with PureHost! |
![]() ![]() Tuesday, December 02, 2008 – Permalink – Text Box HighlightsChange backgroundIt can be difficult to tell which text box on a form you're currently working with. One solution is to highlight the current position, with a different background. Access 2000+ allows you to do this with conditional formatting, but you can also get a similar result using code. To do so, create a new Module and add the following code:
Save and close the Module, then open the appropriate Form in Design view. Click the Code button and insert =Highlight("GotFocus") in each of the Form's textbox control's GotFocus event procedure. Likewise, add =Highlight("LostFocus)") to each textbox's LostFocus event procedure. Labels: Access <Doug Klippert@ 6:53 AM |