473,407 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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 2586
ARC
Under the office menu code, you should be able to hide it as follows:

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

Andy


"evenlater" <ev*******@gmail.comwrote in message
news:65**********************************@i76g2000 hsf.googlegroups.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...@PCESoft.invalidwrote:
Under the office menu code, you should be able to hide it as follows:

<officeMenu>
<button idMso="FileOpenDatabase" visible="false"/>
</officeMenu>

Hope this helps,

Andy


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

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="true"<button idMso="FileOpenDatabase"
visible="false"/>
<officeMenu...........


"evenlater" <ev*******@gmail.comwrote in message
news:74**********************************@k30g2000 hse.googlegroups.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...@PCESoft.invalidwrote:
>Under the office menu code, you should be able to hide it as follows:

<officeMenu>
<button idMso="FileOpenDatabase" visible="false"/>
</officeMenu>

Hope this helps,

Andy


Jul 2 '08 #4
I've added the code just below the "startFromScratch" 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.microsoft.com/office/2006/01/customui"
onLoad="OnRibbonLoad" loadImage="LoadImages">
<commands>
<command idMso="Help" enabled="true"/>
<command idMso="WindowClose" enabled="true"/>
<command idMso="WindowRestore" enabled="true"/>
<command idMso="WindowMinimize" enabled="true"/>
</commands>
<ribbon startFromScratch="true">
<officeMenu>
<button idMso="FileNewDatabase" visible="false"/>
<button idMso="FileOpenDatabase" visible="false/>
<splitButton idMso="FileSaveAsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWindowAccess" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Jul 2 '08 #5
ARC
Try changing to:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
onLoad="OnRibbonLoad" <ribbon startFromScratch="true">
<officeMenu>
<button idMso="FileNewDatabase" visible="false"/>
<button idMso="FileOpenDatabase" visible="false/>
<splitButton idMso="FileSaveAsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWindowAccess" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>

"evenlater" <ev*******@gmail.comwrote in message
news:15**********************************@j22g2000 hsf.googlegroups.com...
I've added the code just below the "startFromScratch" 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.microsoft.com/office/2006/01/customui"
onLoad="OnRibbonLoad" loadImage="LoadImages">
<commands>
<command idMso="Help" enabled="true"/>
<command idMso="WindowClose" enabled="true"/>
<command idMso="WindowRestore" enabled="true"/>
<command idMso="WindowMinimize" enabled="true"/>
</commands>
<ribbon startFromScratch="true">
<officeMenu>
<button idMso="FileNewDatabase" visible="false"/>
<button idMso="FileOpenDatabase" visible="false/>
<splitButton idMso="FileSaveAsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWindowAccess" >
</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...@PCESoft.invalidwrote:
Try changing to:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
onLoad="OnRibbonLoad" <ribbon startFromScratch="true">
<officeMenu>
<button idMso="FileNewDatabase" visible="false"/>
<button idMso="FileOpenDatabase" visible="false/>
<splitButton idMso="FileSaveAsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWindowAccess" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>

"evenlater" <evanca...@gmail.comwrote in message

news:15**********************************@j22g2000 hsf.googlegroups.com...
I've added the code just below the "startFromScratch" 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.microsoft.com/office/2006/01/customui"
onLoad="OnRibbonLoad" loadImage="LoadImages">
<commands>
<command idMso="Help" enabled="true"/>
<command idMso="WindowClose" enabled="true"/>
<command idMso="WindowRestore" enabled="true"/>
<command idMso="WindowMinimize" enabled="true"/>
</commands>
<ribbon startFromScratch="true">
<officeMenu>
<button idMso="FileNewDatabase" visible="false"/>
<button idMso="FileOpenDatabase" visible="false/>
<splitButton idMso="FileSaveAsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWindowAccess" >
</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:
="FileSaveAsMenuAccess". You might want to get rid of that line entirely.

Andy
"evenlater" <ev*******@gmail.comwrote in message
news:22**********************************@y21g2000 hsf.googlegroups.com...
Thanks, but it's still not working. I get the default ribbons/office
button menu.
On Jul 2, 6:03 pm, "ARC" <PCES...@PCESoft.invalidwrote:
>Try changing to:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
onLoad="OnRibbonLoad" <ribbon startFromScratch="true">
<officeMenu>
<button idMso="FileNewDatabase" visible="false"/>
<button idMso="FileOpenDatabase" visible="false/>
<splitButton idMso="FileSaveAsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWindowAccess" >
</group>
</tab>
</tabs>
</ribbon>
</customUI>

"evenlater" <evanca...@gmail.comwrote in message

news:15**********************************@j22g200 0hsf.googlegroups.com...
I've added the code just below the "startFromScratch" 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.microsoft.com/office/2006/01/customui"
onLoad="OnRibbonLoad" loadImage="LoadImages">
<commands>
<command idMso="Help" enabled="true"/>
<command idMso="WindowClose" enabled="true"/>
<command idMso="WindowRestore" enabled="true"/>
<command idMso="WindowMinimize" enabled="true"/>
</commands>
<ribbon startFromScratch="true">
<officeMenu>
<button idMso="FileNewDatabase" visible="false"/>
<button idMso="FileOpenDatabase" visible="false/>
<splitButton idMso="FileSaveAsMenuAccess" visible="false" />
</officeMenu>
<tabs>
<tab id="tab0" label="Home">
<group idMso="GroupWindowAccess" >
</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="FileOpenDatabase" 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
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...
2
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...
1
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...
13
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...
15
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...
3
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...
16
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
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...
25
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.