So I had a question come in regarding showing the progress of a task.
Access has an ActiveX control that you can use called the ProgressBar and you can follow the guide in the image above to add it to your form.
On you long running process you can show the progress bar so the user knows something is happening
Sub LongRunningProcess_Click()
Me.ProgressBar2.Min = 1 ‘(your starting point: some starting number like, 1)
Me.ProgressBar2.Max = 100 ‘(your total records like: rst.RecordCount)
Me.ProgressBar2.Value = 1
For i = 1 To 100
Me.ProgressBar2.Value = i
DoEvents ‘show the changes on the progress bar
Next i
End Sub
Let me know if you have any questions
Learn Access VBA: Understand Tables, Queries, Forms, and Reports
Learn Access VBA: From Zero to Database Hero If you’ve ever opened Microsoft Access and wondered how all the pieces fit together — tables, queries, forms, and reports — this tutorial is made for you. In just a few minutes, you’ll understand how Access works behind the scenes and see how VBA (Visual Basic for […]
How To Make An Access Form Time Picker
Here is a relatively easy way to select times for your time entry text boxes. It’s a reusable form that allows you to pick a time from an Access form. There are probably different ways to do this but here is the way I would do it. On the form that has the time fields, […]
How to pick a file to load In VBA
How to Pick a File in VBA: FileDialog & GetOpenFilename Explained When building Excel VBA applications, you’ll often need to let users pick a file to load in VBA. Instead of hard-coding file paths, you can use built-in dialogs that make file selection easy and user-friendly. VBA offers two main approaches: FileDialog object (flexible, customizable) […]
What is the purpose of the Me keyword in Access VBA?
What does the Me keyword mean? “Me” refers to the Access form currently in focus. Instead of writing out the entire form reference, you can just use the keyword “Me” which is easier. Like: Me.txtbox = “I am a textbox on the form that currently has the focus.” or you can update a label’s caption […]
Support these sponsors: