Solved

showing form while...

Posted on 1998-09-02
3
131 Views
Last Modified: 2010-04-30
What is the best way to show form while another forms sub is running?

I've got a form where user gives some information and then pushes the save button which runs SaveDatabase sub and that saving can take a while. I would like show some kind of "Saving in progress..." form there and it would disappear when saving is done.

Anybody any ideas where I could find some nice saving animations?

Thanks in advance!
0
Comment
Question by:majala
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
waty earned 50 total points
ID: 1432523
Do as follow :

Sub SaveDatabase()

    FormWait.show
    doevents
     
    '*** Here save your database
    ...

    ...

    '*** Work is done

    unload FormWait

End Sub

NB : you could add some annimation in your form.

 In the FormWait : Add a timer with code to show annimation
 During the Save don't forget to add some doevents to give  
time to the form to make annimation.

 
             
0
 

Author Comment

by:majala
ID: 1432524
Any idea where could I find those animations (from internet or ...)?
0
 
LVL 14

Expert Comment

by:waty
ID: 1432525
You could find some of them on internet, but I don't have an adress.

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

726 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