Hi Everyone!,
I'm not even sure if this is possible but I'll ask anyways. I have built an access application that contains a set of buttons along the top of every form that serve as navigation.* These buttons each perform the same function on every form they are on. (menu opens the main menu, etc) I have database macros to assign each button the same function but I still have to go through each form and manually assign them. I was wondering if it was possible to define a public function that on db open will look for all buttons with a certain name and assign them the macro. (so all buttons called cmdmainmenu will have the OpenMainMenu macro assigned and so on).
Is it possible? If yes, thoughts on what the vba would look like?
I appreciate any help!!
Kim
*Before you go there, I have already tried the navigation form and set all forms as subforms. This slowed the db down so much that it was no longer efficient. So now my solution is to have the navigation buttons at the top of each individual form which helps in speed but involves a lot of tedious programming.
I'm not even sure if this is possible but I'll ask anyways. I have built an access application that contains a set of buttons along the top of every form that serve as navigation.* These buttons each perform the same function on every form they are on. (menu opens the main menu, etc) I have database macros to assign each button the same function but I still have to go through each form and manually assign them. I was wondering if it was possible to define a public function that on db open will look for all buttons with a certain name and assign them the macro. (so all buttons called cmdmainmenu will have the OpenMainMenu macro assigned and so on).
Is it possible? If yes, thoughts on what the vba would look like?
I appreciate any help!!
Kim
*Before you go there, I have already tried the navigation form and set all forms as subforms. This slowed the db down so much that it was no longer efficient. So now my solution is to have the navigation buttons at the top of each individual form which helps in speed but involves a lot of tedious programming.