Hello,
This seems to work OK although I prefer to use the standalone forms.
Create a global variable:
global Continue as boolean
At the beginning of the Sub ‘HideDBWinOpenSwitchboard’ add:
Continue = true
Just before the end of the Sub ‘HideDBWinOpenSwitchboard’ add:
do while Continue
wait 20
loop
ThisComponent.close(true)
Add this sub:
Sub CloseBase
Continue = false
End Sub
and link it to the Document Closed
event of the form you are dealing with.
When that form is closed it will close that Base file.
Also,
Can all the code that follows be safely excluded in my case?
No. That is code to open the specific form. You must specify your form to be opened there. Of course, the commented lines can be eliminated.