Display .gif while query is loading.

DuMont

Registered User.
Local time
Today, 00:37
Joined
Jul 31, 2014
Messages
24
Hi Guys,

I have a separate form in which I want to use as a loading screen for my users while the query loads on the other form. Now I can do this with text easy but not with a .gif

I have the loading form to

Code:
Private Sub Form_Timer()
 DoCmd.Close acForm, "Loading Screen", acSaveNo
DoCmd.OpenForm "Form1", acNormal
But it just stops the .gif and then runs the query before opening Form1.

Any ideas?

Thanks,
 
You'll need to use an ActiveX control for that.

How about using the Hour Glass (i.e. DoCmd.HourGlass)?
 
I thought about that but doesn't look as good.

Which active x control would I use? I tried a couple of them like Microsoft Web Browser & Shockwave Flash Object - but neither of them gave me an option to set the control source to the .gif
 
Well that's how I have it now - in a web browser control. But as soon as the timer goes off THEN it loads the query and halts the .gif :banghead:
 
Well my intent was to have a secondary form as a loading screen which would be displayed first when they open the form1 - this loading screen would display a message & a .gif WHILE running the query for the form1. Once the query was finished loading it would then close the loading screen and open form1.

I figured by using the timer & calculating how long it takes to run the query - it would have worked how I wanted but wasn't the case.
 
The gif should be animated so I still don't understand why you need a timer. If your gif is an animated progress bar it doesn't need a timer and you won't need to know how long the query takes either.

If you want to show real-time progress then the action you're performing in the query needs to be done in a recordset.
 

Users who are viewing this thread

Back
Top Bottom