S
Secret Squirrel
I'm having a brain freeze with setting up my custom menubar. I have 2 menus
bars, 1 for all users (CustomMenu), and 1 for me (CustomMenuLS). I have the
following code firing via my autoexec macro but for some reason it's loading
the DB without any menubar. From the startup options I have the "CustomMenu"
loading as the default menubar. Am I doing something wrong here? How do I get
my menubar to load when I login and the other to load whenever someone else
logs in?
Public Function CustomLoad()
If CurrentUser() = "squirrel" Then
DoCmd.ShowToolbar "CustomMenu", acToolbarNo
Else
DoCmd.ShowToolbar "CustomMenuLS", acToolbarYes
End If
End Function
bars, 1 for all users (CustomMenu), and 1 for me (CustomMenuLS). I have the
following code firing via my autoexec macro but for some reason it's loading
the DB without any menubar. From the startup options I have the "CustomMenu"
loading as the default menubar. Am I doing something wrong here? How do I get
my menubar to load when I login and the other to load whenever someone else
logs in?
Public Function CustomLoad()
If CurrentUser() = "squirrel" Then
DoCmd.ShowToolbar "CustomMenu", acToolbarNo
Else
DoCmd.ShowToolbar "CustomMenuLS", acToolbarYes
End If
End Function