Removing the New Database and Open Database options from the OfficeButton
Question posted by: evenlater
(Guest)
on
July 1st, 2008 06:45 PM
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!
|
|
July 2nd, 2008 03:45 PM
# 2
|
Re: Removing the New Database and Open Database options from the OfficeButton
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" <evancater@gmail.comwrote in message
news:6537bd3b-1cab-4e66-be8b-e3670aa8b4d8@i76g2000hsf.googlegroups.com...
Quote:
>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!
|
|
|
July 2nd, 2008 04:45 PM
# 3
|
Re: Removing the New Database and Open Database options from the OfficeButton
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:
Quote:
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
|
|
|
July 2nd, 2008 04:55 PM
# 4
|
Re: Removing the New Database and Open Database options from the OfficeButton
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" <evancater@gmail.comwrote in message
news:74ff3182-2f73-46a3-baae-f046e94c4bbe@k30g2000hse.googlegroups.com...
Quote:
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:
Quote:
>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
|
>
>
>
|
|
|
July 2nd, 2008 05:45 PM
# 5
|
Re: Removing the New Database and Open Database options from the OfficeButton
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>
|
|
July 2nd, 2008 11:05 PM
# 6
|
Re: Removing the New Database and Open Database options from the OfficeButton
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" <evancater@gmail.comwrote in message
news:1576d9c6-a39f-4181-b550-5770e6a13644@j22g2000hsf.googlegroups.com...
Quote:
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>
|
|
|
July 3rd, 2008 02:25 PM
# 7
|
Re: Removing the New Database and Open Database options from the OfficeButton
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:
Quote:
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:1576d9c6-a39f-4181-b550-5770e6a13644@j22g2000hsf.googlegroups.com...
>
Quote:
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?
|
>
Quote:
<!-- 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>
|
|
|
|
July 3rd, 2008 03:55 PM
# 8
|
Re: Removing the New Database and Open Database options from the OfficeButton
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" <evancater@gmail.comwrote in message
news:22b6e56e-1414-44f8-8b21-95bf68987df1@y21g2000hsf.googlegroups.com...
Quote:
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:
Quote:
>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:1576d9c6-a39f-4181-b550-5770e6a13644@j22g2000hsf.googlegroups.com...
>>
Quote:
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?
|
>>
Quote:
<!-- 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>
|
|
>
|
|
|
July 3rd, 2008 08:45 PM
# 9
|
Re: Removing the New Database and Open Database options from the OfficeButton
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?
Not the answer you were looking for? Post your question . . .
190,474 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).
|