From: Leslie Isaacs on 22 Jan 2010 17:29 Hello All Is it possible to include the OnClick event code of one button as part of the OnClick event code of another button - without having to copy/paste it all? I'm sure this should be do-able, but can't quite see how! Hope someone can help. Many thanks Les
From: Marshall Barton on 22 Jan 2010 17:45 Leslie Isaacs wrote: >Is it possible to include the OnClick event code of one button as part of >the OnClick event code of another button - without having to copy/paste it >all? I'm sure this should be do-able, but can't quite see how! > Just call the other Click event procedure like any normal Sub. Either: somebutton_Click or Call somebutton_Click() -- Marsh MVP [MS Access]
From: Leslie Isaacs on 24 Jan 2010 06:52 Thanks Marshall - didn't realise it would be as simple as that! Les "Marshall Barton" <marshbarton(a)wowway.com> wrote in message news:oeakl5hj8r1pjqoqc4ogvs4o8sq0iktqhl(a)4ax.com... > Leslie Isaacs wrote: >>Is it possible to include the OnClick event code of one button as part of >>the OnClick event code of another button - without having to copy/paste it >>all? I'm sure this should be do-able, but can't quite see how! >> > > > Just call the other Click event procedure like any normal > Sub. Either: > somebutton_Click > or > Call somebutton_Click() > > -- > Marsh > MVP [MS Access]
|
Pages: 1 Prev: automation with access Next: Records and Associated Notes Query |