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.
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!
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.
I am currently working in MS access 2013, and having an issue with some forms that worked previously. I have gone back and edited them to have different functionality. I need the forms to be pop ups. Now, they work perfectly when they aren't pop-ups, but as soon as I change the forms to pop-ups the forms pop up off screen. I have no clue how to fix this.
Now the first thing I did was start from an old verison, and I was just going to remake the form; however, as soon as I change ONE thing from those old forms the form starts popping up off screen again.
Has anyone had this issue or know how to resolve it?
If you have two monitors or if your application is created in a secondary monitor and used in a single monitor machine, this behavior is expected. As EvDev mentioned. Set the "auto center" = Yes and edit your application in the default monitor.
Set the Auto Center property of the form to True.
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
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