Hi, I could use some help with this. Just ran out of things to try. I am opening a form in dialog mode from an Excel spreadsheet in Office 365 and it always opens minimized. I have done this many times and it has always opened on the screen without additional clicks. When I make the call to DoCmd.Openform in Office 365 you can see Access is open in the taskbar minimized and you have to click on it for the form to show. I don’t want my users having to click on the app to open it, actually it is hard to even notice it is there. The code I have works fine in Access 2024, 2021 and 2019 but not in Office 365. The Access form is set to PopUp = Yes, Modal = Yes, Auto Center = Yes and Auto Resize = Yes. In Access I have added code to the load event on the form attempting to make it show but nothing is working. Added Docmd.Maximize, DoCmd.Move both work only after icon clicked in taskbar.
I also made a blank form with one field and no code and that gives me the same result when it is opened from Excel.
I tried this on 3 different win11 machines with Office 365, one just reloaded and only office 365 added, and have the exact same results.
Am I missing something that has been added to Office 365 or does something need to be changed in my code?
Code in Excel
Dim accApp As Access.Application
Set accApp = New Access.Application
With accApp
.Visible = True ' false would be preferable but it doesn’t even show on screen in 365, true works fine in all other versions.
.OpenCurrentDatabase AccessDbFilePath
.DoCmd.OpenForm FormName:=FormReportStr, WindowMode:=acDialog, WhereCondition:=WhereStr, OpenArgs:=ArgsStr ' Open form in dialog mode
End With
Since the form is being opened in acDialog mode this code stops after the DoCmd.Openform and sits there until the form running in access is closed.
Any help would be appreciated!
I also made a blank form with one field and no code and that gives me the same result when it is opened from Excel.
I tried this on 3 different win11 machines with Office 365, one just reloaded and only office 365 added, and have the exact same results.
Am I missing something that has been added to Office 365 or does something need to be changed in my code?
Code in Excel
Dim accApp As Access.Application
Set accApp = New Access.Application
With accApp
.Visible = True ' false would be preferable but it doesn’t even show on screen in 365, true works fine in all other versions.
.OpenCurrentDatabase AccessDbFilePath
.DoCmd.OpenForm FormName:=FormReportStr, WindowMode:=acDialog, WhereCondition:=WhereStr, OpenArgs:=ArgsStr ' Open form in dialog mode
End With
Since the form is being opened in acDialog mode this code stops after the DoCmd.Openform and sits there until the form running in access is closed.
Any help would be appreciated!