I have an Access 2010 application that has a default form. I do not want users to see or to be able to unhide the navigation pane. I tried unchecking the display navigation pane option in the current project options but its still there. I don't want the pane to be minimized (that is, pushed off to the left). I want it completely gone. I know it's possible because I have seen an application where the navigation pane is not there at all but I don't know how the developer did it. I do not think it was done using VBA. Ideas?
Thanks,
Taffy
You can hide the navigation pane using the current database options and unchecking the 'Display Navigation Pane'. You'll need to re-start the database for this to take effect.
If the bar is still displaying then there is something happening with your start up form.
Try creating a completely new database file with a single blank form and set this form to be the startup display form and uncheck the navigation pane to verify that this method works. Then check your main application to see what is different.
Changing the database option should hide the navigation pane, but if it doesn't, you could try the following code:
Function HideNavigationPane()
DoCmd.SelectObject acTable, "TableName", True
DoCmd.RunCommand acCmdWindowHide
End Function
Replace "TableName" with the name of one of your tables, and that should hide the navigation pane.
Related
I had a button click event in my access form which has
DoCmd.OpenForm "frmStudentsAll", acNormal, , , , acDialog
Clicking this button opened the frmStudentAll in dialog view but all of a sudden today clicking this button did not open the form. I thought Access was crashing everytime I clicked this button but I can still edit the VBA but I cannot press any of the buttons in GUI. My thought is that the acDialog is opening a really small form somewhere that I cannot see and I cannot press anything without closing it. I am having to close Access using task manager.
DoCmd.OpenForm "frmStudentsAll", acNormal
Opening the form in just normal view works fine but this is not really what I want. I did not do any new Access updates recently. Not sure why this is happening.
The problem is that the form does open, but is positioned off-screen.
This is a common issue when you have a multi-monitor setup or have different users with different resolutions using the database.
By default, Access stores the location of the form relative to the database window. If a specific user has two screens, or a very large screen, he can easily position it where others can't reach it. And even a single user can position it where he himself can't see it, by first positioning it on the first screen while Access is open on the second screen, and then opening Access on the first screen.
To avoid it, set Auto Center to Yes in the property pane for the form. That makes sure the form is always centered with respect to the Access application window, so always is on-screen as long as Access is on-screen.
Alternatively, when you're locked out of the database because of this issue so can't adjust the form, you can use Forms!frmStudentsAll.Move 0,0 in the VBA Immediate window to reposition it. That way, you don't have to close the database when this occurs.
Not sure if this will help or not but, I'll throw it out there anyways. I had a similar problem when I had two monitors set up. Then lost one. There was one program that I would use all the time but, all of the sudden it wouldn't work. Took a while for it to kick in. That program was opening on the second screen that was no longer there. Just a shot in the dark... Good luck!
in my MS Access 2013 application, I am using a Navigation Form as a top layer to connect all my subforms.
How do I stop Access from requerying the subforms whenever I change tabs (forms) ?!
(Basically I just want to use the navigation tabs as a way switch the other forms that remain open but hidden)
This seems like a basic feature that i cant't seem to figure out.
Thank you in advance!
Unlike Tabs, NavigationForms has a menu and a subform control where your "target forms" will be "loaded". So every time when you click a navigation button, your target form will be "loaded/opened" into the subform control.
It means you are not re-querying your forms but unloading and loading.
for your purpose you might well use the normal Tabs.
How do i hide all queries/Modules from left hand side of the Access objects in order to prevent user to access them.
You can make objects hidden by right clicking on object>View Properties > Attributes: Hidden = True
you can hide the navigation pane by going to File>Options>Current Database>Navigation>uncheck the 'Display Navigation Pane" box
And you can hide most of the stuff on the ribbon by File>Options>Current Database>Ribbon and Toolbar options> uncheck "Allow Full Menus"
The problem with all of this is that none of it is permanent. Any user can show the navigation pane by hitting F11 or show full menus by right clicking on the quick access toolbar and getting into the access options.
You can automatically do all of this on startup using an autoexec macro but again, a clever person can get around all of it.
You could compile your Access app into an 'MDE' or 'ACCDE' (compiled executable) file: http://www.utteraccess.com/wiki/index.php/Creating_MDE,_ADE,_and_ACCDE_Files
I found a question here on stack overflow about removing the access window and they displayed a picture showing it done, but when I attempted to use the code it didn't do anything as far as I can tell. When it comes to VB and Access I'm a newb and could use a little help in getting my database to display something similar to this. http://img403.imageshack.us/img403/2053/pycsd.png
That is one of my screen caps. All you need in your startup code is the following line of code:
DoCmd.ShowToolbar "Ribbon", acToolbarNo
The above code can be placed in your startup form.
So, the general settings are:
Tabbed window mode (which is default anyway).
Turn off display of tabs.
Turn off navigation pane.
Just set the form as your startup form and in the forms on-load event execute the above one line of code.
Has anyone found a way to change the icon displayed in the Office Button in A2007?
Having converted an MS Access 2003 app to 2007, it's very annoying that my app is now displayed as an MS Office app instead!
You can certainly hide all of the ribbon and the office button with one line of VBA code in your startup. You can use:
DoCmd.ShowToolbar "Ribbon", acToolbarNo
The above will hide the office button the QAT and the ribbon.
edit:
You were asking how to hide everything. It is just a simple great one of code that will accomplish this for you.
If you are looking to build a custom UI, then you are free to do so. About the only limitation of a custom ribbon is you HAVE to have file button (but, I think every program I installed for 15+ years had a file option anyway).
So, you are most free to customize what that file button shows. You question simply asked how to hide everything and the above does that with ease.
So, if you do want a ribbon, then your custom ribbon can specify startfromScratch = true, then the only UI options you add to your ribbon is what the user will see.
However, a custom ribbon will always have the file button (or what we often call pizza button and that simply part of the ribbon).
You can also consider using menu bars and not showing the pizza button, but 2007 does not have a built in menu bar builder like previous versions did. This abilty to show only a custom menu bar is outlined here:
http://www.accessribbon.de/en/index.php?FAQ:7