Marshall Brooks
Member
- Local time
- Yesterday, 22:22
- Joined
- Feb 28, 2023
- Messages
- 696
Really hard to explain, but this works in Windows10 with Access M365 and does not work in Citrix with Access 2016 - although it used to work. I somewhat understand where the error comes into play. I'm using a variation of https://btabdevelopment.com/free-access-tools/ front end auto update tool.
When the database opens, it opens my frm_switchboard. The form_Load() procedure for that form calls Function AutoExec() in Module1. Function AutoExec() calls Function AutoUpdate() in Module 1.
Function AutoUpdate checks the date in a local table against a date in a backend table and if the date in the backend table is newer, it updates the database, otherwise it opens normally.
Opening normally works in either OS.
If the database is out-of-date, Function AutoUpdate calls Function UpdateFrontEnd in module BasFEUpdate. That function writes a batchfile to update the database, opens the batch file, and closes the database. The batch file deletes the current database and then downloads the new version from the server and opens it.
I have a progress bar that says "Checking for Updates". Under Win10, the progress bar briefly comes up after I tell it to perform the update and then goes away. Under Citrix, the progress bar that says "Checking for Updates" never goes away, so the database doesn't ever close, so the batch file cannot update the database.
I think what is happening is the database can't close until the frm_Switchboard finishes loading, but under Citrix, it gets stuck in a loop and never exits. I need to know how to prevent this.
Also - I was giving up up on the complicated update procedure so I changed the code for Citrix to just run DoCmd.quit acQuitSaveNone. That doesn't work either, it just shows "Checking for Updates" and I end up closing it from the Task Manager. (However, DoCmd.Quit acQuitSaveNone works fine from a button on my forms in Citrix or locally, just not from the startup functions.
Thanks in advance!!!!!
When the database opens, it opens my frm_switchboard. The form_Load() procedure for that form calls Function AutoExec() in Module1. Function AutoExec() calls Function AutoUpdate() in Module 1.
Function AutoUpdate checks the date in a local table against a date in a backend table and if the date in the backend table is newer, it updates the database, otherwise it opens normally.
Opening normally works in either OS.
If the database is out-of-date, Function AutoUpdate calls Function UpdateFrontEnd in module BasFEUpdate. That function writes a batchfile to update the database, opens the batch file, and closes the database. The batch file deletes the current database and then downloads the new version from the server and opens it.
I have a progress bar that says "Checking for Updates". Under Win10, the progress bar briefly comes up after I tell it to perform the update and then goes away. Under Citrix, the progress bar that says "Checking for Updates" never goes away, so the database doesn't ever close, so the batch file cannot update the database.
I think what is happening is the database can't close until the frm_Switchboard finishes loading, but under Citrix, it gets stuck in a loop and never exits. I need to know how to prevent this.
Also - I was giving up up on the complicated update procedure so I changed the code for Citrix to just run DoCmd.quit acQuitSaveNone. That doesn't work either, it just shows "Checking for Updates" and I end up closing it from the Task Manager. (However, DoCmd.Quit acQuitSaveNone works fine from a button on my forms in Citrix or locally, just not from the startup functions.
Thanks in advance!!!!!