Access Navigation form stop requerying forms - ms-access

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.

Related

How to get rid of the navigation pane?

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.

How can I adjust the z-index of a form in Microsoft Access

I maintain a fairly large ms-access 2003 application. One of the recent changes that I was asked to make was to add a popup dialog box to warn used of a particular situation when the opened a form which is itself a pop up (although not modal) form.
Unfortunately, the new popup modal form comes up behind the original one, getting the user interface into an impossible position (you cannot close the modal dialog box because it is hidden, but you cannot move the others out the way because the modal dialog is preventing you).
I've temporarily made the new box come up to the very side of the screen but it is far from ideal.
Is there a way to specify the Z index of a form so I can control the layering? (or any other solution)
The only way to control this is by the order in which you open the forms.
I.e. you have to first open the original popup form, then open the new modal popup.
You could also consider using MsgBox() instead of the new form.

Use VBA to hide queries and modules in MS Access and prevent user access

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

Microsoft Access form opens minimised after its been changed

Im having an intermittent problem where forms open in view mode but minimised, looking like a small inch-sized box with the 'X' close button visible.
It normally seems to happen when Ive made a change to the form or code in the forms module, but happens randomly when being used in view mode.
I can only get round it by either re-importing a backup of the form or making the form border sizeable, either way it's not too professional.
Any ideas how I can solve this one?
Docmd.Restore seems to work on the form load event

Change MS Office Button Icon

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