I have just pulled out the last hair on my head and hopefully some will help me out here.
I created a new custom toolbar for my reports. I added the Print and Close buttons to it. Checked it immediately and it worked fine. Once I restarted my application with all the hide menus VBA code that Mr. Hudson kindly supplied the new toolbar did not appear when I previewed the report. I added in code to show this toolbar after the hide menus code with no success. I then returned to the application using the shift key to check on the toolbar. The new toolbar was nowhere to be found. Yet if I tried to add it again, I would be notified that the name already exists. Any suggestions are greatly appreciated.
Thanks in advance!!!
The Eagle has landed!
For anybody who is interested, the actual problem was due to hiding all the menus first. I attempted to use the ShowToolbar command after but it did not work and the toolbar did not show up in View/Toolbars. Once I ran the code to unhide the menus, I was able to see the new toolbar and things worked fine.
To use the hide toolbar code, I added code to identify my custom toolbar and not hide it.
I created a new custom toolbar for my reports. I added the Print and Close buttons to it. Checked it immediately and it worked fine. Once I restarted my application with all the hide menus VBA code that Mr. Hudson kindly supplied the new toolbar did not appear when I previewed the report. I added in code to show this toolbar after the hide menus code with no success. I then returned to the application using the shift key to check on the toolbar. The new toolbar was nowhere to be found. Yet if I tried to add it again, I would be notified that the name already exists. Any suggestions are greatly appreciated.
Thanks in advance!!!
The Eagle has landed!
For anybody who is interested, the actual problem was due to hiding all the menus first. I attempted to use the ShowToolbar command after but it did not work and the toolbar did not show up in View/Toolbars. Once I ran the code to unhide the menus, I was able to see the new toolbar and things worked fine.
To use the hide toolbar code, I added code to identify my custom toolbar and not hide it.
Last edited: