hicksi
Board Regular
- Joined
- Mar 5, 2012
- Messages
- 214
- Office Version
- 365
- 2021
- Platform
- Windows
I am trying to create a remote UPGRADE process that will replace a module programmatically in certain situations.
I am getting various issues which appear to be a process not completing before progressing.
Ie, I have been able to RENAME the module, IMPORT the new version, and then REMOVE the renamed version.
And that works great in debug mode, but when I run it live, I get a "duplicate definition" error (which I presume is because the removed and replaced version both contain the definition of an ENUM.
Is there a generally-known delay or some form of test to ensure that one process completes before continuing?
(No, DOEVENTS doesn't work, but should I try having 2 or 3 DOEVENTS to force completion)
I am getting various issues which appear to be a process not completing before progressing.
Ie, I have been able to RENAME the module, IMPORT the new version, and then REMOVE the renamed version.
And that works great in debug mode, but when I run it live, I get a "duplicate definition" error (which I presume is because the removed and replaced version both contain the definition of an ENUM.
Is there a generally-known delay or some form of test to ensure that one process completes before continuing?
(No, DOEVENTS doesn't work, but should I try having 2 or 3 DOEVENTS to force completion)