I want to create a button which inputs the date into the current active field (with the focus on it). Therefore i need to read the current active field name. How can i do this ?
Well, if you want to refer to the name of the current field, you would use Screen.ActiveControl.Name
But if you want to click a button and put a value in that field, that won't work, because as soon as you click the button, the button gains focus and the other field is no longer the current control. In that case, you'd use Screen.PreviousControl, i.e. to insert the current date:
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.