Advertisement

09.14.2007 at 01:51AM PDT, ID: 22828353
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.4

Progress bars and efficiency (Access VBA)

Asked by Angelp1ay in Microsoft Access Database, VB Database Programming

Tags: , ,

I'm designing some data management software in Access VBA. I'm trying to make it a little more user friendly with the use of a progress bar and forced screen refreshing so the users don't panic and think it has crashed. I've written three global functions (i.e. in a module) to add the access system progress bar, update it and remove it again.

Public Sub progress_init(strMessage As String, intSize As Long)
    progressCounter = 0
    progressBar = SysCmd(acSysCmdInitMeter, strMessage, intSize)
End Sub

Public Sub progress_increment(Optional intScreenUpdate As Long = 1, Optional intIncrement As Long = 1)
    progressCounter = progressCounter + intIncrement
    progressBar = SysCmd(acSysCmdUpdateMeter, progressCounter)
    If progressCounter - Round(progressCounter / intScreenUpdate, 0) * intScreenUpdate = 0 Then DoEvents
End Sub

Public Sub progress_kill()
    progressBar = SysCmd(acSysCmdRemoveMeter)
End Sub

and I have 2 global variables in the same module:

' Setup progress bar
Global progressBar As Variant
Global progressCounter As Long

My first question is, am I being really inefficient having globally defined variables which are always in the memory and should I instead have these defined at the form level? Can I improve my design but still retain single definitions of my progress bar functions?

Secondly, for some of the forms it would be nice to have a two tier progress bar for when I have a loop within a loop e.g.

||||||||||||||--------------- Total Progress
||||||||||||||||||||||||||||||||------ This loop

Is this possible using inbuilt access functions (like the syscommand thing above)? Is this easy to build myself, possibly a progress bar form that I update? How would I control this form using a single global function?Start Free Trial
 
Loading Advertisement...
 
[+][-]09.14.2007 at 03:25AM PDT, ID: 19890234

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.14.2007 at 05:44AM PDT, ID: 19890882

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, VB Database Programming
Tags: access, progress, bar
Sign Up Now!
Solution Provided By: JDettman
Participating Experts: 3
Solution Grade: A
 
 
[+][-]09.14.2007 at 05:46AM PDT, ID: 19890890

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.14.2007 at 06:21AM PDT, ID: 19891154

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.14.2007 at 06:36AM PDT, ID: 19891274

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.14.2007 at 06:46AM PDT, ID: 19891375

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628