thebigcheese
Technical User
I have been having a problem with a modal form.
The form is activated via a module, which in turn is activated via a button on another form.
The form itself collects file name and directory locations used by the DIR statement in order to check the existence of input files necessary for the rest of the module. The form is both modal and pop-up, so that the user is given the chance to edit the data each time the procedure is run.
The problem is this:-
When I first open the DB and run the procedure, the form pops-up and the user is prompted for file location etc.
The procedure works well - the first time it is run !
When the procedure is run again, the form is opened, but instantly disappears, which means the user does not have the opportunity to edit the data - the rest of the procedure then runs.
If I close the DB and re-open, the procedure runs perfectly the first time it is called (ie the form pops-up with focus, but then disappears.
Any ideas?
The form is activated via a module, which in turn is activated via a button on another form.
The form itself collects file name and directory locations used by the DIR statement in order to check the existence of input files necessary for the rest of the module. The form is both modal and pop-up, so that the user is given the chance to edit the data each time the procedure is run.
The problem is this:-
When I first open the DB and run the procedure, the form pops-up and the user is prompted for file location etc.
The procedure works well - the first time it is run !
When the procedure is run again, the form is opened, but instantly disappears, which means the user does not have the opportunity to edit the data - the rest of the procedure then runs.
If I close the DB and re-open, the procedure runs perfectly the first time it is called (ie the form pops-up with focus, but then disappears.
Any ideas?