I spent the whole day looking for an answer to this. I am working on an existing MS Access solution for a client, split into FE/BE. the data in the BE need to be synched with Azure SQL. I developed the class that handles this part with no issues. the problem is that when the Sync Job is fired, it takes a lot of time, and access being a single thread system, the users have to wait, and the customer doesn't like it.
So, what I did is that I moved the Sync Class to the BE part, so it operates independently from the FE, especially that the data is imported first in stage tables then consumed afterwards, so no interference with the users on the FE.
The problem is, when I tried to fire the Sync function from the class on the BE using Access.Application and OpenCurrentDatabase, the same thing happens; I have to wait till the process on the BE finishes so the FE gets the focus back.
I created an Autoexec macro that runs the "Sync" job when the BE opens, and then tried to open the BE using "Shell" from the FE (two independent instances of access), but the BE is password protected (Access 2016) and can't be open via shell.
all I want now is a way to fire the Sync job on the BE and return to the FE immediately. I can't find a way. can anyone help me with this ?
Thanks in advance !