MS Access AcDialog hiding the form - ms-access

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!

Related

Minimize Access Application then Maximize it and set focus back to Access Application

I need to do what i describe in Title but when the minimizing with DoCmd.Minimize seems to work as the access window disappears. But then when i try to maximize it back with DoCmd.Maximize, it doesn't give focus back to access window.
PS : i use theses methods in a function called by a acDialog form.
Did you try setting focus on your control/form?
DoCmd.Maximize
Form_MyForm!MyControl.SetFocus

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.

Ms Access pop-up forms off screen

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.

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

Access 2010 remove access window completely

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.