Making a Status meter

  • Thread starter Thread starter David Ehrenreich
  • Start date Start date
D

David Ehrenreich

Hello,

Here is what I'm trying to do:

I would like to have a goodbye form(no feilds) that closes
after 5sec(Done this already). Now here is the part I
cant figure out. On the goodbye form I would like there
to be a "Fake" Saving meter(Like when your downloading a
file). This is really for astectic purposes and I always
get asked did my info get saved. My ideal so far is to
create 5 boxes that are not visable then after 1 sec box
one appears then at 2 sec box two appears, etc. On the
fith box I would like the form to close.

I can make them all appear at one time, but I cant figure
out how to do them 1 sec appart from eachother

Any help would be great.

Thank You
 
Hi David,
use the 'more controls' button on the toolbox to add a
Microsoft ProgressBar Control.

during your countdown procedure assign an incrementing
value to the progressbar.value property. This bar has a
default max value of 100

Luck
Jonathan
 
David,

Put 1000 in the timer interval property of your form. (That will make the Timer
function fire every second). Put a blank label named LblMySave with a zero width
on your form. Set the background to Blue. Put the following code in the Timer
event of your form:

If Me!LblMySave.Width > = 360 Then 'Twips
DoCmd.Close
MsgBox "Your Data Is Saved"
Else
Me!LblMySave.Width = Me!LblMySave.Width + 720
End If

The label width will increase 1/2" every second. When it is 2-1/2" (5 seconds),
the form will close and a message saying your data is saved will pop up.
 
Back
Top