I have a form with many buttons. Most of these buttons have a .tag field where I identify their function (numeric field)
Every button, on click, should execute same code, passing the .tag value to a function:
Private Sub CtlNameA_Click()
Call WriteTimbraIN(CInt(CtlNameA.tag))
DoCmd.Close
End Sub
Is there a smarter way to do it without writing the very same code (except for control name) in every button?
Thanks