View Single Post
  #8  
Old June 5th, 2010, 07:22 PM posted to microsoft.public.access.forms
esn
external usenet poster
 
Posts: 34
Default Hide ribbon event not working

On Jun 5, 11:15*am, esn wrote:
On Jun 4, 3:04*pm, Jörn Bosse wrote:



Well,


try to create a button which executes the code. I just checked ist and
it works fine. If that doesn´t hel, you may create a module with a
public function. Create a macro called autoexec which executes this
function.
You could show up a messagbox when loading your startform to check if
code is about to be executed on startup.


Jörn


Am 04.06.2010 23:46, schrieb esn:


Thanks for checking in again,


Did you create a secure folder in the security center? Or do you always
* *have to choose "Allow Macros" or something like this, when your db starts?


The db is in a "trusted location," so events/macros aren't blocked,
plus I have my default setting at "allow all macros" because the only
db files I open are ones I built myself. *Anything else it could be?


I know the code is loading on startup because it hides the navigation
pane like it should. *I tried putting the code in the on click event
of a button and it still doesn't do anything. *I've pored over the
options and can't find anything that would be blocking this particular
line of code. *Is there any chance I accidentally renamed the ribbon
or something like that?


Update - I tried putting it on a form in a completely empty blank
database and it does the trick. So why is the database I'm working on
not reading that particular line of code? I took a look at some of
the system tables to see if anything jumped out but that's all way
over my head.