Here is a strange one. I have multiple forms in a db each of which has a buttons that first opens a main form and then closes the open form. They all work fine except one. When I press it the main form opens but it is not centered. The main form is only partially visible in the bottom right corner of the screen and I have to use the scroll bars to center the form. When I open up the main form from any other form it opens centered and maximised. The code I use is the same on every form, it is below.
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "SwitchMain"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Close acForm, "frm1", acSaveYes
Any thoughts on why? Thanks
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "SwitchMain"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.Close acForm, "frm1", acSaveYes
Any thoughts on why? Thanks