Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Query Progress Bar 2

Status
Not open for further replies.

mbthaz

Technical User
Aug 29, 2002
44
US
I have a form where I have a command button that initiates 5 different update queries. What I would like to do since I hide the status bar in this database is display a progress bar on the form or in a popup box that shows the status of the query and a name that makes sense for the query. Below is my code for the button event. Any help is greatly appreciated.

Private Sub Command35_Click()
On Error GoTo Err_Command35_Click

Dim stDocName As String

stDocName = "Update Last Seven in Order Table"
DoCmd.OpenQuery stDocName, acNormal, acEdit
stDocName = "Update Last Seven in Posted Table"
DoCmd.OpenQuery stDocName, acNormal, acEdit
stDocName = "Update Last Seven in SCATS Error Table"
DoCmd.OpenQuery stDocName, acNormal, acEdit
stDocName = "Update Posted Orders without Order Number"
DoCmd.OpenQuery stDocName, acNormal, acEdit
stDocName = "Update Posted Orders"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command35_Click:
Exit Sub

Err_Command35_Click:
MsgBox Err.Description
Resume Exit_Command35_Click

End Sub
 
I have some sample progress bars that may be of benefit. I'll post the URL to get them.
 
Exactly what I had in mind, but how do I tie it to the status of the individual queries. I'd like to show two bars, one for the overall task progress(I can do that) and one for the individual queries(can figure out how to do that). Again, Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top