Having problems adding a customised toolbar to an Access report and form. Does anyone have some code that will create a toolbar with at least one button on it, perhaps one standard Print button and one customised macro button.
You have to first create the toolbar by going to the View menu, then toolbars then customize. Click new, give it a name and then drag some commands on to it from the commands window. Then you can use DoCmd.ShowToolbar "NewToolbarName", acToolbarYes
You'd have to have a macro first. You can add macros to your new custom toolbar. But not VBA code directly. So create a new macro that uses the RunCode function to call your VBA. Then under the commands tab of the customize window there is a menu called All Macros click that and search for your macro. Good Luck!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.