473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Access "frmRunningQuery" test box not working correctly

anoble1
245 128KB
I have a report that takes a long time to open. I have decided to add a form that comes up right before the code starts that says Running Query.

I never can get the form to view "All the Way". It will come up, but the focus is on the code running and you can only see the top of the running query form. Is their someway to (set the focus) to that Running Query form and have the other stuff run behind it. instead of vise versa?

Example, the form comes up, you will see the Caption of the form that says "Running Query" very samll in the upper left hand corner like normal. But the Form is blank, or shows blank when running the report. When in fact it says "Running Query" in big red letters.

Thanks,

I'm using the:
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenForm "frmRunningQuery"
Then the report starts it's stuff
May 16 '12 #1

✓ answered by NeoPa

I use some code like this in my form's Timer event procedure :
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Timer()
  2.     Call DoCmd.SelectObject(ObjectType:=acForm, ObjectName:=Me.Name)
  3. End Sub
Bear in mind that other running code can stop this from triggering unless the DoEvents() command is run periodically.

5 1334
NeoPa
32,556 Expert Mod 16PB
I use some code like this in my form's Timer event procedure :
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Timer()
  2.     Call DoCmd.SelectObject(ObjectType:=acForm, ObjectName:=Me.Name)
  3. End Sub
Bear in mind that other running code can stop this from triggering unless the DoEvents() command is run periodically.
May 16 '12 #2
anoble1
245 128KB
Sorry, I'm a little new to this. I copied what you had above:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Timer()
  2.       Call DoCmd.SelectObject(ObjectType:=acForm, ObjectName:=Me.frmRunningQuery)
  3.   End Sub
  4.  
How do I call it into the report before the code starts to run?
Or do I just take out the Private sub and just do the SelectObject?
May 16 '12 #3
NeoPa
32,556 Expert Mod 16PB
ANoble:
How do I call it into the report before the code starts to run?
Not sure what this means O.o.

What you need to do to use this isto post my code (not your changed code if you want it to work) into the module of the form [frmRunningQuery] and then set the form's Timer Interval property to something like 500 (milliseconds) so that the form makes itself selected every half a second.

If that answers your question then good. Otherwise, please ask again, but making clear sense is always good.
May 17 '12 #4
anoble1
245 128KB
I don't know how I missed this when I was searching the first time...

http://bytes.com/topic/access/insigh...dicator-access

This answers everything, plus future ideas. Thanks @NeoPa!
May 18 '12 #5
NeoPa
32,556 Expert Mod 16PB
Ah good. It's always cheering to know that people find what you do helpful. Have fune with it :-)
May 18 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Danny | last post by:
Hello How can I make access import a tab delimited text file that contains a special char u (but with the dots over it like a german spelling). The u shows with the two dots in the text file but...
29
by: interpim | last post by:
Just a quick exercise from my C programming book, that I can't figure out why it isn't working properly. It kinda works but im getting wierd output. It is supposed to remove the vowels from text. ...
17
by: Jonathan Burd | last post by:
Greetings everyone, Reading about the int64_t types added by C'99, I decided to implement a 64-bit version of atoi for my own library. However, for the test number provided, it isn't doing what...
2
by: MJR | last post by:
I live in Arizona. We of course do not change for DST. All of the data that is inserted into our database is in Arizona time. My client wants me to display the Time Zone the record was inserted in...
5
by: Joel Barsotti | last post by:
I'm trying to get sql cache dependency working correctly. I've got sql server 2005 for my back end. I've don the "ALTER DATABASE dbName SET broker_enable" command. I made sure the user in my...
7
by: marty.overdear | last post by:
I am opening a new window using window.open. I need the new window to open on top of the parent everytime. I cannot use onBlur b/c the user will need to click back to the parent for information. ...
26
by: tesh.uk | last post by:
Hi Gurus, I have written the following code with the help of Ivor Horton's Beginning C : // Structures, Arrays of Structures. #include "stdafx.h" #include "stdio.h" #define MY_ARRAY 15
2
by: irish10945 | last post by:
I have been using this great dynamic page flip from 76 design but I've run into some problems maybe someone can help me out with. I have about 70 pages in the book. I do not want people to have to...
2
by: Joey | last post by:
Hello guys, I am using Microsoft Windows Server 2003 Enterprise edition. Yesterday I installed IIS from the "Application Server" category in Add/Remove Windows components. Afterwards I also...
3
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I am using an ajax masked edit extender along with a text box and masked edit validator and calendarExtender. It was working correctly but now for some reason when the user selects the image...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.