Instead of using the default Record Selector I would like to have a box surrounding the active record on the form which would show the user the active record.
Change the color of the control that has focus on a form
Open the form in Design view or Form view.
Make sure that the control is selected, and then, on the Format menu, click Conditional Formatting.
In the Condition x area of the Conditional Formatting dialog box, click Field Has Focus in the first box.
Select the font style, color, or other formatting that you want the field to have when it has focus.
Note When you open the Conditional Formatting dialog box, it displays the current default formatting for the selected control, including colors, font styles, and any expressions that you may have defined for the field.
OR
Write the VBA Code in the On Current Event to set the border type property of the fields to solid or change the color property.
Thank you for your lead there was a lot of work involved. But your idea was the clincher to my idea.
What I did at the end was I created a Text Box and a field in the table in the table called flag which is the control source for the text box. With on current event procedure I set the flag field to true and the previous record I set the flag to false. Now with the on conditional format I say if the flag = true then change the text box to black. This box is send to the back (behind) of all fields (controls) in the form. it is also one big text box that takes up the entire detail area of the form. It is a drop taller then all the other controls in the form and sticks a little out on the bottom and on the left and right side. so as soon as you enter the current record you see a black border around the whole current record and all other records have a slight white border around them.
Thanks for the lead, I have worked with conditional formatting in the past but did not know how it will work here.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.