Hi
I am trying to create a public sum that will run the following code when I open a database.
DoCmd.ShowToolbar "Ribbon", acToolbarNo
DoCmd.ShowToolbar "Status Bar", acToolbarNo
DoCmd.NavigateTo "acNavigationCategoryObjectType"
DoCmd.RunCommand acCmdWindowHide
How do I make the module so it runs when my database opens please. I have tried to follow some google links but cannot seem to get it working.
Using Access 2010. Could someone explain how I achieve this please.
Thanks
I am trying to create a public sum that will run the following code when I open a database.
DoCmd.ShowToolbar "Ribbon", acToolbarNo
DoCmd.ShowToolbar "Status Bar", acToolbarNo
DoCmd.NavigateTo "acNavigationCategoryObjectType"
DoCmd.RunCommand acCmdWindowHide
How do I make the module so it runs when my database opens please. I have tried to follow some google links but cannot seem to get it working.
Using Access 2010. Could someone explain how I achieve this please.
Thanks