thisisanemergency
Registered User.
- Local time
- Today, 19:31
- Joined
- Oct 25, 2012
- Messages
- 13
I'm using a progress bar solution posted by Oldsoftboss: http://www.access-programmers.co.uk/forums/showthread.php?t=130802. The progress bar should indicate progress on a button click event that initiates various queries.
The problem I have is that the progress bar only runs once all the queries have completed. I have tried inserting the "RunProgressBar" function in different places, but it doesn't have any effect. The function seems to be attached and dependent on the Form_Timer event only.
This is the code for my button click event which sits within my main form:
I haven't made any changes (except for form name) to the code in the sample database.
My desired result is as follows:
Advice appreciated as always!
The problem I have is that the progress bar only runs once all the queries have completed. I have tried inserting the "RunProgressBar" function in different places, but it doesn't have any effect. The function seems to be attached and dependent on the Form_Timer event only.
This is the code for my button click event which sits within my main form:
Code:
Private Sub BtnImport_Click()
Call PBFormOpen 'opens the progress bar form
Call InfoStatusDel 'updates a text box on the progress bar form
Call DeleteOldRecords 'runs a delete query
Call InfoStatusImp 'updates a text box on the progress bar form
Call ImportSpreadsheets 'runs saved imports
Call InfoStatusApp 'updates a text box on the progress bar form
Call AppendArchive 'runs an append query
End Sub
I haven't made any changes (except for form name) to the code in the sample database.
My desired result is as follows:
- Button click > progress bar form opens
- Progress bar runs to full while delete query runs (progress bar form stays open)
- Progress bar runs to full while import runs (again, progress bar form stays open)
- Progress bar runs to full while append query runs (progress bar form closes)
Advice appreciated as always!