G
Guest
Is it possible to use in a Public Function a method to "call" a private sub
(or public sub) which is tied to a click_event on a form button?
I have a unique need to try this method, which would theoretically work as
follows:
1. User clicks buttonA on a form, which looks up certain information
(through a Public Function) based on the button.caption, then
2. As a part of Function statements in step1, "calls" a private sub which
is tied to a click event on another button (same form) called Add_Click.
3. Button Add_Click does lots of additional look ups and data manipulation.
(Button Add_Click also does things independent of the function that I would
create; therefore, this is why I haven't elected to re-write the entire
process.)
I tried just "calling" the private sub (and also renaming it as a public
sub) but the function reports that the sub is not declared.
Is this possible to accomplish in this manner?
(or public sub) which is tied to a click_event on a form button?
I have a unique need to try this method, which would theoretically work as
follows:
1. User clicks buttonA on a form, which looks up certain information
(through a Public Function) based on the button.caption, then
2. As a part of Function statements in step1, "calls" a private sub which
is tied to a click event on another button (same form) called Add_Click.
3. Button Add_Click does lots of additional look ups and data manipulation.
(Button Add_Click also does things independent of the function that I would
create; therefore, this is why I haven't elected to re-write the entire
process.)
I tried just "calling" the private sub (and also renaming it as a public
sub) but the function reports that the sub is not declared.
Is this possible to accomplish in this manner?