dbTalk Databases Forums  

How to display progress messages

comp.database.ms-access comp.database.ms-access


Discuss How to display progress messages in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ragtimer
 
Posts: n/a

Default How to display progress messages - 09-04-2003 , 11:29 AM






I'm struggling my way through building an Access 2k application,
learing how to do each step as I get to it .... in other words I'm
pretty new at this ......

I'm running a series of processes that update local tables from a data
warehouse connected through ODBC, some of which are pretty time
consuming, all as a result of the user clicking one button. I'd
really like to display a list of the tasks that are being done and
check each of them off as they're completed. It'd be cool to show
something like the Windows Uninstaller's progress dialog, but
whatever's achievable will satisfy me.

Any help would be GREATLY appreciated. And please remember that I
haven't been doing this for very long.

Thanks!!!

Reply With Quote
  #2  
Old   
(Pete Cresswell)
 
Posts: n/a

Default Re: How to display progress messages - 09-04-2003 , 07:20 PM






RE/
Quote:
I'm running a series of processes that update local tables from a data
warehouse connected through ODBC, some of which are pretty time
consuming, all as a result of the user clicking one button. I'd
really like to display a list of the tasks that are being done and
check each of them off as they're completed. It'd be cool to show
something like the Windows Uninstaller's progress dialog, but
whatever's achievable will satisfy me.
Chuck's on the Good Right And Holy Path, but I use the status bar a lot.

Like when running a series of queries or stored procedures.... I'll just update
the status bar with a little message like "Rating Import: Getting raw rating
data from JJK....", then "Rating Import: Checking ratings for matches against
held securities..." and so-on and so-forth.

Only two catches:
- At startup time, make sure the status bar is visible
- Don't forget to clear the status bar at the end.


For processes that go through a number of iterations that can be at least
roughly estimated in advance, of course I use SysCmd's InitMeter and
UpdateMeter... But that's not going to work for something that's being done by
the server unless you can write some sort of loop that gets updates from the
server - which I haven't even thought about yet, much less attempted....
-----------------------
PeteCresswell


Reply With Quote
  #3  
Old   
Ragtimer
 
Posts: n/a

Default Re: How to display progress messages - 09-05-2003 , 06:15 AM



I looked for the statusbar control (and the progressbar control) and
see that they're ActiveX controls included with the MOD. I'm just
running with the standard Office 2k Professional package.

On Fri, 05 Sep 2003 00:20:40 GMT, "(Pete Cresswell)" <x@y.z> wrote:

Quote:
RE/
I'm running a series of processes that update local tables from a data
warehouse connected through ODBC, some of which are pretty time
consuming, all as a result of the user clicking one button. I'd
really like to display a list of the tasks that are being done and
check each of them off as they're completed. It'd be cool to show
something like the Windows Uninstaller's progress dialog, but
whatever's achievable will satisfy me.

Chuck's on the Good Right And Holy Path, but I use the status bar a lot.

Like when running a series of queries or stored procedures.... I'll just update
the status bar with a little message like "Rating Import: Getting raw rating
data from JJK....", then "Rating Import: Checking ratings for matches against
held securities..." and so-on and so-forth.

Only two catches:
- At startup time, make sure the status bar is visible
- Don't forget to clear the status bar at the end.


For processes that go through a number of iterations that can be at least
roughly estimated in advance, of course I use SysCmd's InitMeter and
UpdateMeter... But that's not going to work for something that's being done by
the server unless you can write some sort of loop that gets updates from the
server - which I haven't even thought about yet, much less attempted....
-----------------------
PeteCresswell


Reply With Quote
  #4  
Old   
Patrick Finucane
 
Posts: n/a

Default Re: How to display progress messages - 09-05-2003 , 09:49 AM



Ragtimer wrote:

Quote:
I looked for the statusbar control (and the progressbar control) and
see that they're ActiveX controls included with the MOD. I'm just
running with the standard Office 2k Professional package.
Check out http://www.attcanada.net/%7ekallal.m.../msaccess.html. Albert has
a WordMerge download that contains a status bar and does what you want.




Reply With Quote
  #5  
Old   
Hank Reed
 
Posts: n/a

Default Re: How to display progress messages - 09-05-2003 , 10:59 AM



I have a simple progress bar function that takes the number of records
in the dataset and scales the bar automatically so you see record by
record progress in a digital and analog display.
Write to me directly if you want the code.
Hank Reed hankrunner (AT) aol (DOT) com

Reply With Quote
  #6  
Old   
(Pete Cresswell)
 
Posts: n/a

Default Re: How to display progress messages - 09-05-2003 , 06:21 PM



RE/
Quote:
I looked for the statusbar control (and the progressbar control) and
see that they're ActiveX controls included with the MOD.
I didn't mean status bar, the control - just the status bar that's built in to
the MS Access window.

e.g.
------------------
Sub statusSet(theMessage As String)
debugStackPush mModuleName & ": statusSet"
On Error GoTo statusSet_err

' PURPOSE: To provide a tool for setting the 'Status' line in the
' lower left of MS Access' window
' ACCEPTS: A free-form text message or an empty string
' SETS: Status bar at bottom of screen to contents
' of message or, if empty string, clears it

Dim v As Variant

If theMessage & "" = "" Then
On Error Resume Next
v = SysCmd(SYSCMD_CLEARSTATUS)
On Error GoTo statusSet_err
Else
v = SysCmd(SYSCMD_SETSTATUS, theMessage)
End If

statusSet_xit:
debugStackPop
On Error Resume Next
Exit Sub

statusSet_err:
bugAlert True, ""
Resume statusSet_xit
End Sub
--------------------------
-----------------------
PeteCresswell


Reply With Quote
  #7  
Old   
Ragtimer
 
Posts: n/a

Default Re: How to display progress messages - 09-09-2003 , 03:19 PM



Thanks for that offer, Hank.

Actually, I'd rather leave email out of it, so if you could post it as
a response here I'd much appreciate it. But if you'd rather not and
would prefer using email, I understand.

Thanks again.


On 5 Sep 2003 08:59:28 -0700, hankrunner (AT) aol (DOT) com (Hank Reed) wrote:

Quote:
I have a simple progress bar function that takes the number of records
in the dataset and scales the bar automatically so you see record by
record progress in a digital and analog display.
Write to me directly if you want the code.
Hank Reed hankrunner (AT) aol (DOT) com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.