L
Larry
I am starting my database with the database window and built-in
toolbars hidden. Certain people have the right to created new queries,
so I have created a button (which is visible only for these people)
that will display the database window so they can access queries.
The problem is the Query Design Toolbar is not displayed when they go
into Design view. I have tried to show the toolbar using the following
statement, without success:
---DoCmd.ShowToolbar "Query Design", acToolbarYes
I have tried putting this statement before and after the statement
that opens the database window, and it still doesn't show the toolbar.
So now I've tried to set the toolbar option to allow built-in toolbars
first, but that doesn't help either. My current code looks like the
following, so can anyone tell me what I missed or need to change?
Application.SetOption "Built-In Toolbars Available", True
DoCmd.ShowToolbar "Query Design", acToolbarYes
DoCmd.SelectObject acQuery, "", True
toolbars hidden. Certain people have the right to created new queries,
so I have created a button (which is visible only for these people)
that will display the database window so they can access queries.
The problem is the Query Design Toolbar is not displayed when they go
into Design view. I have tried to show the toolbar using the following
statement, without success:
---DoCmd.ShowToolbar "Query Design", acToolbarYes
I have tried putting this statement before and after the statement
that opens the database window, and it still doesn't show the toolbar.
So now I've tried to set the toolbar option to allow built-in toolbars
first, but that doesn't help either. My current code looks like the
following, so can anyone tell me what I missed or need to change?
Application.SetOption "Built-In Toolbars Available", True
DoCmd.ShowToolbar "Query Design", acToolbarYes
DoCmd.SelectObject acQuery, "", True