PC Review


Reply
Thread Tools Rate Thread

Display Status on Form

 
 
=?Utf-8?B?Sm9obiBDZWxsbw==?=
Guest
Posts: n/a
 
      1st Feb 2007
Got a database that does some back end processing. Client wants a screen to
show what it is doing. (Don't ask me why) Trying the following code,
essentially just trying to get a 4 second pause between the message changing
for testing. When I run it I get the hourglass, no change in the form until
the very end, where it displays the "Sending ALL e-mail group..." message.
What am I doing wrong?

Function TheCA()
On Error GoTo TheCA_Err
'Step 1 - Imports data from MySQL Server to
local---------------------------------------
Forms!frmTest!lblStatus.Caption = "Importing Data From Web"
sSleep 4000


'Step 2 - Transfers records to local
table------------------------------------------------
Forms!frmTest!lblStatus.Caption = "Transferring data to local tables..."
sSleep 4000

'Sets New flag on web database to No
Forms!frmTest!lblStatus.Caption = "Clearing New flag on MySQL server..."
sSleep 4000

'Step 3 - Sends Compliment Autoreply to
customers-------------------------------------
Forms!frmTest!lblStatus.Caption = "Sending Compliment autoresponse to
guests..."
sSleep 4000

'Step 4 - Sends Other Autoreply to
customers--------------------------------------------
Forms!frmTest!lblStatus.Caption = "Sending Other Request autoresponse to
guests..."
sSleep 4000

'Step 5 - Sends All email
group-----------------------------------------------------------
Forms!frmTest!lblStatus.Caption = "Sending ALL e-mail group..."
sSleep 4000


TheCA_Exit:
Exit Function

TheCA_Err:
MsgBox Error$
Resume TheCA_Exit

End Function
--
John Cello
John Cello Consulting
Helping organizations hire, develop, and retain their best employees.
www.johncelloconsulting.com
 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2xhdHV1?=
Guest
Posts: n/a
 
      1st Feb 2007
This may help. After each line where you change the caption, put:
Me.Repaint
--
Dave Hargis, Microsoft Access MVP


"John Cello" wrote:

> Got a database that does some back end processing. Client wants a screen to
> show what it is doing. (Don't ask me why) Trying the following code,
> essentially just trying to get a 4 second pause between the message changing
> for testing. When I run it I get the hourglass, no change in the form until
> the very end, where it displays the "Sending ALL e-mail group..." message.
> What am I doing wrong?
>
> Function TheCA()
> On Error GoTo TheCA_Err
> 'Step 1 - Imports data from MySQL Server to
> local---------------------------------------
> Forms!frmTest!lblStatus.Caption = "Importing Data From Web"
> sSleep 4000
>
>
> 'Step 2 - Transfers records to local
> table------------------------------------------------
> Forms!frmTest!lblStatus.Caption = "Transferring data to local tables..."
> sSleep 4000
>
> 'Sets New flag on web database to No
> Forms!frmTest!lblStatus.Caption = "Clearing New flag on MySQL server..."
> sSleep 4000
>
> 'Step 3 - Sends Compliment Autoreply to
> customers-------------------------------------
> Forms!frmTest!lblStatus.Caption = "Sending Compliment autoresponse to
> guests..."
> sSleep 4000
>
> 'Step 4 - Sends Other Autoreply to
> customers--------------------------------------------
> Forms!frmTest!lblStatus.Caption = "Sending Other Request autoresponse to
> guests..."
> sSleep 4000
>
> 'Step 5 - Sends All email
> group-----------------------------------------------------------
> Forms!frmTest!lblStatus.Caption = "Sending ALL e-mail group..."
> sSleep 4000
>
>
> TheCA_Exit:
> Exit Function
>
> TheCA_Err:
> MsgBox Error$
> Resume TheCA_Exit
>
> End Function
> --
> John Cello
> John Cello Consulting
> Helping organizations hire, develop, and retain their best employees.
> www.johncelloconsulting.com

 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9obiBDZWxsbw==?=
Guest
Posts: n/a
 
      1st Feb 2007
Quick reply, exactly what I needed. Thanks!
--
John Cello
John Cello Consulting
Helping organizations hire, develop, and retain their best employees.
www.johncelloconsulting.com


"Klatuu" wrote:

> This may help. After each line where you change the caption, put:
> Me.Repaint
> --
> Dave Hargis, Microsoft Access MVP
>
>
> "John Cello" wrote:
>
> > Got a database that does some back end processing. Client wants a screen to
> > show what it is doing. (Don't ask me why) Trying the following code,
> > essentially just trying to get a 4 second pause between the message changing
> > for testing. When I run it I get the hourglass, no change in the form until
> > the very end, where it displays the "Sending ALL e-mail group..." message.
> > What am I doing wrong?
> >
> > Function TheCA()
> > On Error GoTo TheCA_Err
> > 'Step 1 - Imports data from MySQL Server to
> > local---------------------------------------
> > Forms!frmTest!lblStatus.Caption = "Importing Data From Web"
> > sSleep 4000
> >
> >
> > 'Step 2 - Transfers records to local
> > table------------------------------------------------
> > Forms!frmTest!lblStatus.Caption = "Transferring data to local tables..."
> > sSleep 4000
> >
> > 'Sets New flag on web database to No
> > Forms!frmTest!lblStatus.Caption = "Clearing New flag on MySQL server..."
> > sSleep 4000
> >
> > 'Step 3 - Sends Compliment Autoreply to
> > customers-------------------------------------
> > Forms!frmTest!lblStatus.Caption = "Sending Compliment autoresponse to
> > guests..."
> > sSleep 4000
> >
> > 'Step 4 - Sends Other Autoreply to
> > customers--------------------------------------------
> > Forms!frmTest!lblStatus.Caption = "Sending Other Request autoresponse to
> > guests..."
> > sSleep 4000
> >
> > 'Step 5 - Sends All email
> > group-----------------------------------------------------------
> > Forms!frmTest!lblStatus.Caption = "Sending ALL e-mail group..."
> > sSleep 4000
> >
> >
> > TheCA_Exit:
> > Exit Function
> >
> > TheCA_Err:
> > MsgBox Error$
> > Resume TheCA_Exit
> >
> > End Function
> > --
> > John Cello
> > John Cello Consulting
> > Helping organizations hire, develop, and retain their best employees.
> > www.johncelloconsulting.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
status bar does not show line and at status =?Utf-8?B?anVkaWpt?= Microsoft Word New Users 1 24th Jan 2005 05:35 PM
Status Bar does not display worksheet status =?Utf-8?B?SE5vcnN3b3J0aHk=?= Microsoft Excel Setup 2 11th Nov 2004 05:03 PM
Internet Connection Status shows incorrect status Marius Greuel Windows XP Networking 1 27th Oct 2004 04:21 PM
IE's bottom page load status /security status bar is missing Brandon Windows XP Internet Explorer 1 14th Jul 2004 11:46 AM
How to display the status on the status area of the Form John Microsoft Access Forms 2 17th Oct 2003 05:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:52 PM.