Question : MS Access VBA - Process Bar

Morning,
I want to be able to add a progress bar to my form. When my database is processing things the user have a tendancy to randomly click to make the database work. I wanted some sort of progress bar to help them understand how far along the processing is. So if I had 20 queires being executed sequentially, after everytime a query is executed another bar added to the progress. I have had a look on the net but am not sure how to adapt their example?
Any help anyone?

Answer : MS Access VBA - Process Bar

from a Macro rather than VBA ?

Ahh ok the code above uses the Access system progress bar (in the statusbar area at the base of the access window) not a form's progress bar.

If you're using a custom control progressbar then you need to set the Min and Max properties and then to make it progress set the value.  e.g.

Me.Progress1.Min = 0
Me.Progress1.Max = 10

CurrentDb.execute "Query1"
Me.Progress1 = 1

etc.

You'll find it much easier to do the whole thing using VBA rather than an Access Macro





Random Solutions  
 
programming4us programming4us