chrisjames25
Registered User.
- Local time
- Today, 08:48
- Joined
- Dec 1, 2014
- Messages
- 404
Hi
I have a form with around 200 command buttons on it. To the right of each command button is a textbox.
Idea is using double click event when i double click on a command button it populates a number detemrined by a number stated in a separate unrelated textbox.
WHat i want to do rather than manually type in the caption name for each command button is to know if it is possible to loop through all the command buttons named cmd_1 -cmd_200 and enter the name from a query using the Variety Field.
If this is possible i have a second question.
FOr each cmd button do i have to enter a separate double click event or is there a way to say if any cmd button within the 1-200 range is double clickedit will launch a double click event
Cheers
I have a form with around 200 command buttons on it. To the right of each command button is a textbox.
Idea is using double click event when i double click on a command button it populates a number detemrined by a number stated in a separate unrelated textbox.
WHat i want to do rather than manually type in the caption name for each command button is to know if it is possible to loop through all the command buttons named cmd_1 -cmd_200 and enter the name from a query using the Variety Field.
If this is possible i have a second question.
FOr each cmd button do i have to enter a separate double click event or is there a way to say if any cmd button within the 1-200 range is double clickedit will launch a double click event
Code:
me.textbox1 = me.textbox0 'the related textbox
Cheers