473,657 Members | 2,479 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Removing the New Database and Open Database options from the OfficeButton

I have an .accde file with custom ribbons and with "Allow Full Menus"
set to False, but the Office Button menu still gives the user the
ability to create a new Access database, or -- much worse -- open an
existing one.

My application is on a terminal server and I'm trying to plug all the
holes so the user can't do anything but use my application. But right
now if the user goes to the Office Button and clicks "Open", he can
navigate to the back-end of my application and use/change/delete the
tables. Even if I use Access User Level Security (and I am), since the
user is logged into the MDW file, he can do anything I've given him
permission to do -- add records, delete records, etc. -- without any
of the data validation, date stamping and logging I've programmed into
my forms.

Help!
Jul 1 '08 #1
8 2600
ARC
Under the office menu code, you should be able to hide it as follows:

<officeMenu>
<button idMso="FileOpen Database" visible="false"/>
</officeMenu>
Hope this helps,

Andy


"evenlater" <ev*******@gmai l.comwrote in message
news:65******** *************** ***********@i76 g2000hsf.google groups.com...
>I have an .accde file with custom ribbons and with "Allow Full Menus"
set to False, but the Office Button menu still gives the user the
ability to create a new Access database, or -- much worse -- open an
existing one.

My application is on a terminal server and I'm trying to plug all the
holes so the user can't do anything but use my application. But right
now if the user goes to the Office Button and clicks "Open", he can
navigate to the back-end of my application and use/change/delete the
tables. Even if I use Access User Level Security (and I am), since the
user is logged into the MDW file, he can do anything I've given him
permission to do -- add records, delete records, etc. -- without any
of the data validation, date stamping and logging I've programmed into
my forms.

Help!
Jul 2 '08 #2
That does help, but where do you put that code? In the ribbon XML? And
if so, at what point?
Thanks!

On Jul 2, 10:44 am, "ARC" <PCES...@PCESof t.invalidwrote:
Under the office menu code, you should be able to hide it as follows:

<officeMenu>
<button idMso="FileOpen Database" visible="false"/>
</officeMenu>

Hope this helps,

Andy


Jul 2 '08 #3
ARC
It's right at the beginning:

<customUI xmlns="http://schemas.microso ft.com/office/2006/01/customui">
<ribbon startFromScratc h="true"<butt on idMso="FileOpen Database"
visible="false"/>
<officeMenu.... .......


"evenlater" <ev*******@gmai l.comwrote in message
news:74******** *************** ***********@k30 g2000hse.google groups.com...
That does help, but where do you put that code? In the ribbon XML? And
if so, at what point?
Thanks!

On Jul 2, 10:44 am, "ARC" <PCES...@PCESof t.invalidwrote:
>Under the office menu code, you should be able to hide it as follows:

<officeMenu>
<button idMso="FileOpen Database" visible="false"/>
</officeMenu>

Hope this helps,

Andy


Jul 2 '08 #4
I've added the code just below the "startFromScrat ch" line, but it's
still not working. I'm not sure if the fact that I wrote the original
ribbon code with the IDBE Ribbon Creator is part of the problem.
Here's what I've got... can you see what I'm missing here?

<!-- Created with IDBE Ribbon Creator (Version: 1.1017) -->
<!-- http://www.RibbonCreator.com -->
<!-- http://www.RibbonCreator.de -->
<customUI xmlns="http://schemas.microso ft.com/office/2006/01/customui"
onLoad="OnRibbo nLoad" loadImage="Load Images">
<commands>
<command idMso="Help" enabled="true"/>
<command idMso="WindowCl ose" enabled="true"/>
<command idMso="WindowRe store" enabled="true"/>
<command idMso="WindowMi nimize" enabled="true"/>
</commands>
<ribbon startFromScratc h="true">
<officeMenu>
<button idMso="FileNewD atabase" visible="false"/>
<button idMso="FileOpen Database" visible="false/>
<splitButton idMso="FileSave AsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWin dowAccess" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Jul 2 '08 #5
ARC
Try changing to:

<customUI xmlns="http://schemas.microso ft.com/office/2006/01/customui"
onLoad="OnRibbo nLoad" <ribbon startFromScratc h="true">
<officeMenu>
<button idMso="FileNewD atabase" visible="false"/>
<button idMso="FileOpen Database" visible="false/>
<splitButton idMso="FileSave AsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWin dowAccess" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>

"evenlater" <ev*******@gmai l.comwrote in message
news:15******** *************** ***********@j22 g2000hsf.google groups.com...
I've added the code just below the "startFromScrat ch" line, but it's
still not working. I'm not sure if the fact that I wrote the original
ribbon code with the IDBE Ribbon Creator is part of the problem.
Here's what I've got... can you see what I'm missing here?

<!-- Created with IDBE Ribbon Creator (Version: 1.1017) -->
<!-- http://www.RibbonCreator.com -->
<!-- http://www.RibbonCreator.de -->
<customUI xmlns="http://schemas.microso ft.com/office/2006/01/customui"
onLoad="OnRibbo nLoad" loadImage="Load Images">
<commands>
<command idMso="Help" enabled="true"/>
<command idMso="WindowCl ose" enabled="true"/>
<command idMso="WindowRe store" enabled="true"/>
<command idMso="WindowMi nimize" enabled="true"/>
</commands>
<ribbon startFromScratc h="true">
<officeMenu>
<button idMso="FileNewD atabase" visible="false"/>
<button idMso="FileOpen Database" visible="false/>
<splitButton idMso="FileSave AsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWin dowAccess" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Jul 2 '08 #6
Thanks, but it's still not working. I get the default ribbons/office
button menu.
On Jul 2, 6:03 pm, "ARC" <PCES...@PCESof t.invalidwrote:
Try changing to:

<customUI xmlns="http://schemas.microso ft.com/office/2006/01/customui"
onLoad="OnRibbo nLoad" <ribbon startFromScratc h="true">
<officeMenu>
<button idMso="FileNewD atabase" visible="false"/>
<button idMso="FileOpen Database" visible="false/>
<splitButton idMso="FileSave AsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWin dowAccess" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>

"evenlater" <evanca...@gmai l.comwrote in message

news:15******** *************** ***********@j22 g2000hsf.google groups.com...
I've added the code just below the "startFromScrat ch" line, but it's
still not working. I'm not sure if the fact that I wrote the original
ribbon code with the IDBE Ribbon Creator is part of the problem.
Here's what I've got... can you see what I'm missing here?
<!-- Created with IDBE Ribbon Creator (Version: 1.1017) -->
<!-- http://www.RibbonCreator.com -->
<!-- http://www.RibbonCreator.de -->
<customUI xmlns="http://schemas.microso ft.com/office/2006/01/customui"
onLoad="OnRibbo nLoad" loadImage="Load Images">
<commands>
<command idMso="Help" enabled="true"/>
<command idMso="WindowCl ose" enabled="true"/>
<command idMso="WindowRe store" enabled="true"/>
<command idMso="WindowMi nimize" enabled="true"/>
</commands>
<ribbon startFromScratc h="true">
<officeMenu>
<button idMso="FileNewD atabase" visible="false"/>
<button idMso="FileOpen Database" visible="false/>
<splitButton idMso="FileSave AsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWin dowAccess" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Jul 3 '08 #7
ARC
That usually happens if there's an error in the ribbon code. Make sure you
have, under the office button, access options, Advanced, "show add-in user
interface errors". With this checked, you will see if there are any error's
in your ribbon. If there's even one error, the ribbon will not show any of
your customizations.

In the list of save commands, I'm not seeing this one:
="FileSaveAsMen uAccess". You might want to get rid of that line entirely.

Andy
"evenlater" <ev*******@gmai l.comwrote in message
news:22******** *************** ***********@y21 g2000hsf.google groups.com...
Thanks, but it's still not working. I get the default ribbons/office
button menu.
On Jul 2, 6:03 pm, "ARC" <PCES...@PCESof t.invalidwrote:
>Try changing to:

<customUI xmlns="http://schemas.microso ft.com/office/2006/01/customui"
onLoad="OnRibb onLoad" <ribbon startFromScratc h="true">
<officeMenu>
<button idMso="FileNewD atabase" visible="false"/>
<button idMso="FileOpen Database" visible="false/>
<splitButton idMso="FileSave AsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWin dowAccess" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>

"evenlater" <evanca...@gmai l.comwrote in message

news:15******* *************** ************@j2 2g2000hsf.googl egroups.com...
I've added the code just below the "startFromScrat ch" line, but it's
still not working. I'm not sure if the fact that I wrote the original
ribbon code with the IDBE Ribbon Creator is part of the problem.
Here's what I've got... can you see what I'm missing here?
<!-- Created with IDBE Ribbon Creator (Version: 1.1017) -->
<!-- http://www.RibbonCreator.com -->
<!-- http://www.RibbonCreator.de -->
<customUI xmlns="http://schemas.microso ft.com/office/2006/01/customui"
onLoad="OnRibbo nLoad" loadImage="Load Images">
<commands>
<command idMso="Help" enabled="true"/>
<command idMso="WindowCl ose" enabled="true"/>
<command idMso="WindowRe store" enabled="true"/>
<command idMso="WindowMi nimize" enabled="true"/>
</commands>
<ribbon startFromScratc h="true">
<officeMenu>
<button idMso="FileNewD atabase" visible="false"/>
<button idMso="FileOpen Database" visible="false/>
<splitButton idMso="FileSave AsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWin dowAccess" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Jul 3 '08 #8
Found the typo. I was missing a quotation mark at the end of the word
false on one line:
<button idMso="FileOpen Database" visible="false/>

Now my next question is what the syntax is to lose the Bluetooth
button and the Recent Documents section?
Jul 3 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
34136
by: Clay Beatty | last post by:
When you create database diagrams in Enterprise Manager, the details for constructing those diagrams is saved into the dtproperties table. This table includes an image field which contains most of the relevant infomation, in a binary format. SQL Enterprise manager offers no way to script out those diagrams, so I have created two Transact SQL components, one User Function and one User Procedure, which together provide a means to script...
2
3597
by: Massimiliano Campagnoli | last post by:
Good morning, Database PRODUCTION was created on a system mamanged tablespace on drive c:\ Now drive c:\ is running out of space and I need to move PRODUCTION to the larger drive d:\ on the same machine. PRODUCTION is currently accessed by 50 clients running many applications and by some REXX scripts running on the same server machine on a timely basis. I do not want to modify in any way clients configuration, applications,
1
2380
by: xmp333 | last post by:
Hi, I created an Access XP database, and then disabled all the menus that allowed users to modify report design, etc... (I'll call them administrative features). Users were only able to use record handling options and the forms I designed. However, if I were to run the database with a shift + double click, I would get the administrative features again.
13
10413
by: Larry L | last post by:
Access is noted for bloating a database when you add and delete records frequently. I have always had mine set to compact on close, and that works great. Now after everyone's advice I split my database, so the data is in a second (back-end) database with all the tables linked. However, now when I close the database, it compacts the front end, since that's what's open, and the back-end grows. I now have to manually open and close the...
15
6844
by: dixie | last post by:
I have a command to open the Access Options dialogue from code: DoCmd.RunCommand acCmdOptions It also opens the Database Window behind it. Is it possible to open the Options without having the database window open as well? dixie
3
5566
by: Paolo | last post by:
Hi, I am trying to compact and repair my database, however every time I try it comes up a message saying: Table: "TempMSysAccessObject already exists", whenever I try to look for this table I cannot find it anywhere... Any clues... Already went into the help file and nothing... Also try to copy my database and the same message comes up
16
6257
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
4
1979
by: visionstate | last post by:
Hi all, I have built my 1st database and it is ready to go on a shared network drive. I have read a few articles about the security in access but am having some trouble getting my head around it all. Firstly, do I need to convert my database from an MDB file to an MDE file? Basically, what i want is for all users to be able to search through the database but only let myself edit the database. I changed some options in the 'Startup'...
25
14839
by: zmickle | last post by:
Excuse my noobness. I am managing an access database that is shared by 4 users. Management does not want to use any technologies outside of access for this application (no SQL Server, etc). I have split the database into front end and back end databases and put the front end on each of the users' computers. All users can open the front end simultaneously, but once somebody updates data in the form, the back end locks up. What I...
0
8844
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8742
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8518
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7354
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.