Multiple command buttons sharing one event?
Posted on 1998-09-06
Let's say that I have 5 command buttons on an Access 97 form. All five buttons perform pretty much the same tasks, with one exception. Rather than use 5 "OnClick" events, is it possible for all 5 command buttons to use one and the same event? If 'yes', then how? Then, how can I perform a Select Case within this single event to determine which button of the 5 that actually triggered the event? This way I can minimize the amount of duplicate coding, while at the same time make sure that the unique code related to each command button is run.