Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2011, 05:34 PM
Authorized User
 
Join Date: Mar 2011
Posts: 13
Thanks: 0
Thanked 1 Time in 1 Post
Default Limiting Access to certain Query types to "power users"

I have a custom ribbon, and most people on the database are not allowed to see or create much of anything. Some people are "power users" who want/or need to be able to create simple queries and some append queries.

Now, I wanted to alter the tab to remove other types of queries such as Update or delete queries, but when I finally found the "correct" XML:

<contextualTabs>
<tabSet idMso="TabSetQueryTools">
<tab idMso="TabQueryToolsDesign">
<group idMso="GroupQueryType">
<toggleButton idMso="QueryMakeTable" getVisible="RibTestVisible" />
<toggleButton idMso="QueryUpdate" getVisible="RibTestVisible" />
<toggleButton idMso="QueryCrosstab" getVisible="RibTestVisible" />
<toggleButton idMso="QueryDelete" getVisible="RibTestVisible" />
<toggleButton idMso="QueryUnionQuery" getVisible="RibTestVisible" />
<toggleButton idMso="QueryPassThroughQuery" getVisible="RibTestVisible" />
<toggleButton idMso="QueryDataDefinition" getVisible="RibTestVisible" />
</group>
</tab>
</tabSet>
</contextualTabs>

I get this error: controls in a built-in group cannot be modified

Is there anything I am doing wrong, or is there any other way to limit the types of queries these power users can make?

Thank you
 
Old February 3rd, 2013, 08:17 PM
Registered User
 
Join Date: Feb 2013
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The error message means what it says. You cannot modify/change a built-in/standardized group. You can, however, set up your own, customized group. Try starting with something like the following:

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="dbCustomTab" label="YourCustomTabNameHere" visible="true">
<group id="dbCustomGroup" label="YourCustomGroupNameHere">
<control idMso="Cut" label="Cut" enabled="true"/>
<control idMso="Copy" label="Copy" enabled="true"/>
<control idMso="Paste" label="Paste" enabled="true"/>
</group>





Similar Threads
Thread Thread Starter Forum Replies Last Post
MSXSL gives error message for "for" inside "select" ilyaz XSLT 1 December 9th, 2010 05:02 PM
Difficulties with "web.config" and "ASPNETDB" CFRham BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 2 July 3rd, 2010 10:19 AM
How to theme the "Browse" button of "FileUpload" control? varunbwj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 October 14th, 2009 01:22 AM
deny users="?" is not working varunbwj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 October 12th, 2009 04:14 AM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 04:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.