Solved

Screen refresh during stored procedures execution

Posted on 2002-05-29
2
233 Views
Last Modified: 2012-05-04
Hi experts,

I have a VB6 app that executes SQL Server 7 stored procedures.  The processing of my stored proc. takes about 15 minutes.  I would like to inform user about wich procedure is executing but when I set the caption property of a label it doesn't work. I think there is a refresh problem !

Thanks in advance.
0
Comment
Question by:anderlecht
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 100 total points
ID: 7041167
After setting the label caption, use DOEVENTS


lblProgress.Caption = "Processing procedure # 1"
Doevents

Cheers
0
 

Author Comment

by:anderlecht
ID: 7041192
Thank you very much it works !!!!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question