Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / February 2007

Tip: Looking for answers? Try searching our database.

Display Status on Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Cello - 01 Feb 2007 15:43 GMT
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
Signature

John Cello
John Cello Consulting
Helping organizations hire, develop, and retain their best employees.
www.johncelloconsulting.com

Klatuu - 01 Feb 2007 15:46 GMT
This may help.  After each line where you change the caption, put:
   Me.Repaint
Signature

Dave Hargis, Microsoft Access MVP

> 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,
[quoted text clipped - 44 lines]
>
> End Function
John Cello - 01 Feb 2007 15:55 GMT
Quick reply, exactly what I needed. Thanks!
Signature

John Cello
John Cello Consulting
Helping organizations hire, develop, and retain their best employees.
www.johncelloconsulting.com

> This may help.  After each line where you change the caption, put:
>     Me.Repaint
[quoted text clipped - 47 lines]
> >
> > End Function
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.