Hi,
I have a form with many buttons, one for each room, and when I click on the button, it will open another form, go to a field (roomNumber) and enter the room number in that field. I got the code for the action down, but I'm stuck at how to program all the buttons on the form (the form contains only buttons, no other type of controls) to execute the code with just one function or sub statement. Can any one help? If I have to go into each button onClick property to do it, it will take too much time, and frankly I'm lazy.
Thanks.
I have a form with many buttons, one for each room, and when I click on the button, it will open another form, go to a field (roomNumber) and enter the room number in that field. I got the code for the action down, but I'm stuck at how to program all the buttons on the form (the form contains only buttons, no other type of controls) to execute the code with just one function or sub statement. Can any one help? If I have to go into each button onClick property to do it, it will take too much time, and frankly I'm lazy.

Thanks.