Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
On click and finding the object/component clicked on
I am programming in Access and there are over 60 text boxes all that start with txtTime_##. The program needs to set the value as the current time when clicked. It's fine and dandy to make 60+ txtTime_##_Click() txtTime_##.Value = Now. However, I believe there should be a less time consuming way to do this. There should be a general Click method that captures the clicking of the mouse, correct. Then find out the name of the component that was clicked and if the name has txtTime_ then place now inside of component name. I do not know how to accomplish the general case.
Thank you for any help.