I want to write a code for my form that when user clicks on each of text boxes to enter the data, textbox background change to green.
Something like this - in form current event:
Dim c as control For each c In me.controls If c.OnClick then C.backcolor= vbGreen C.tag="clicked" End If If c.AfterUpdate and c.tag="clicked" then C.backcolor= vbWhite C.tag="" Next c How can I find out when an event is triggered?