D
DaveT
Guest
I have a form with 10 Controls (Fields) for entering a new record into a table. I have written a small macro with the SetValue command so that when a field gets the focus, the border changes from it’s setting of transparent to a solid line. It’s obviously only an aesthetic change however it does help to remove clutter and give a focus on the particular control. My problem is that due to my lack (This is my first foray into macros) of understanding the multitude of options (controls) I will have to write a separate macro for each field to turn the border on/off. The current macro reads like “SetValue [Forms]![New Data]![ID].[BorderStyle] 1”
Is there a way of replacing the field control part of the above statement, [ID], with something that refers to the active control or do I have to write 10 separate macros for each field, plus of course 10 separate macros to SetValue back to the original setting?
I would appreciate any advice.
Is there a way of replacing the field control part of the above statement, [ID], with something that refers to the active control or do I have to write 10 separate macros for each field, plus of course 10 separate macros to SetValue back to the original setting?
I would appreciate any advice.