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
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