473,406 Members | 2,549 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.

Doing Something in the background

Using Access 97 - on windows 2000

Is it possible to do something (in the background) whilst getting on with
othe normal databse jobs such as using forms for data manipulation

e.g.
The following sub beeps once a second [but I would like to do something more
serious ]
I would like this to be running whilst getting on with oher things.
-----------------------------------------------
Public Sub BackgroundTask()
Dim MyTime As Variant, Delay As Integer, DoSomething As Integer

MyTime = Now
Delay = 5
DoSomething = 1
While DateDiff("s", MyTime, Now) < Delay
If DateDiff("s", MyTime, Now) = DoSomething Then
DoSomething = DoSomething + 1
Beep
End If
Wend

End Sub

----------------------------------------------

--
Jim Bunton
jB*****@Blueyonder.co.uk
13 Westbourne Road
Trowbridge
Wilts. BA14 0AJ
Tel: 01225 765 541
Mobile: 07919 283 968

Nov 12 '05 #1
1 1566
On Sat, 18 Oct 2003 13:49:59 +0100, "J Bunton"
<jB*****@BlueYonder.co.uk> wrote:

Not really.
You could perhaps create a timer on a form, and when it ticks, perform
some action.
You could also try something very contrived with an endless loop with
DoEvents in it, but if I was your customer I would not pay for it.

If you are serious about background processing, you need to use a tool
that would allow you to create a multi-threading application. VB.NET
comes to mind.

-Tom.

Using Access 97 - on windows 2000

Is it possible to do something (in the background) whilst getting on with
othe normal databse jobs such as using forms for data manipulation

e.g.
The following sub beeps once a second [but I would like to do something more
serious ]
I would like this to be running whilst getting on with oher things.
-----------------------------------------------
Public Sub BackgroundTask()
Dim MyTime As Variant, Delay As Integer, DoSomething As Integer

MyTime = Now
Delay = 5
DoSomething = 1
While DateDiff("s", MyTime, Now) < Delay
If DateDiff("s", MyTime, Now) = DoSomething Then
DoSomething = DoSomething + 1
Beep
End If
Wend

End Sub

----------------------------------------------


Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Benjamin | last post by:
Hello, I need some advice on a financial application I'm doing. First, I suppose I should give a little background so you know where I'm coming from. For 5 years I earned my living doing COBOL...
4
by: lindsey.crocker | last post by:
I have this links list with background images set on them which changes when they roll over. The <td> is set valign="middle" however as soon as you apply the rollover to the link, the text jumps...
4
by: Merlynx | last post by:
I am using TimerCallback to call a method in an activex dll repeatedly. The TimerCallback works fines but when i exit the program, it still shows up in the taskmgr i.e still running. So i use the...
5
by: Franco, Gustavo | last post by:
Hi, I have a question, and please I need a answer. How can I finalize a thread running with Application.Run (I need the message loop!!!) without call Thread.Abort?. I want to call...
0
by: Randy | last post by:
Hi everyone, I'm trying to fix something I've done wrong, or is it a bug? My CSS looks ok in DW 8 preview, IE/Mac and Safari, but Firefox 1.5.0.4/Mac doesn't display the right menu correctly,...
33
by: bonk | last post by:
I have an application that needs to perform some background work, i.e. Logging, wich must not block the main thread. How would I basically design such a scenario? It is obvious that I should do...
3
by: Beemer Biker | last post by:
I started seeing huge amounts of error messages such as "Validation (XHTML 1.0 Transitional):" Element schema is not supported". There was nothing wrong with that for 3 weeks and suddenly there...
2
by: everly | last post by:
Hi, I'm helping my friends band and making their MySpace. I messed something up and I can't figure out what it is. Everything is all out of whack on the bottom half of the page. The comments...
6
by: r035198x | last post by:
I have put together this article to give people starting Swing an awareness of issues that need to be considered when creating a Swing application. Most of the Swing tutorials that I have seen just...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.