Terabithia
Programmer
This is a simple problem but is causing me some grief. I have a subroutine in a module that displays a form with a progress bar, loads another form, then unloads the progress bar form.
One problem is when this is all done, the main form that calls all of this vanishes behind any other open applications.
The other problem is runtime error 364 ("Object was unloaded") is generated on the Load frmDatabaseSearch
line after the form has been loaded and used.
Snipet from subroutine:
'Show form
frmProgressBar.Show
'Brute force get arround error on next line
On Error Resume Next
'Load database search form
Load frmDatabaseSearch
Snipet from end of form load event in frmDatabaseSearch:
'Unload progress bar form
Unload frmProgressBar
'Show this form
Me.Show vbModal
One problem is when this is all done, the main form that calls all of this vanishes behind any other open applications.
The other problem is runtime error 364 ("Object was unloaded") is generated on the Load frmDatabaseSearch
line after the form has been loaded and used.
Snipet from subroutine:
'Show form
frmProgressBar.Show
'Brute force get arround error on next line
On Error Resume Next
'Load database search form
Load frmDatabaseSearch
Snipet from end of form load event in frmDatabaseSearch:
'Unload progress bar form
Unload frmProgressBar
'Show this form
Me.Show vbModal