473,651 Members | 2,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 97 pop up alarm

I would like to be able to have pop up alarms on my database. i.e. A warning
that a date has been reached and an action is required.
I would like this to take the form of a message box giving the user a
warning that an action needs to be taken, perhaps something like checking
the date in a particular field and if one year has elapsed then a warning
would come up telling the user to perform a particular function on this
record.
Any ideas would be very helpful
Nov 12 '05 #1
2 3751
You need something in the on load event of a form in your app, The form that
opens when the db starts probably.

If [datefield] < dateadd("yyyy",-1,date()) then
msgbox "Its over a year since this date, time to worm the cat"
end if

If the [datefield] is not on the form being opened you may need to use Dlookup
to find the value
Hope this gets you going in the right direction
David B

Alan Paterson <al************ *******@btopenw orld.com> wrote in message
news:bu******** **@titan.btinte rnet.com...
I would like to be able to have pop up alarms on my database. i.e. A warning
that a date has been reached and an action is required.
I would like this to take the form of a message box giving the user a
warning that an action needs to be taken, perhaps something like checking
the date in a particular field and if one year has elapsed then a warning
would come up telling the user to perform a particular function on this
record.
Any ideas would be very helpful


Nov 12 '05 #2
"Alan Paterson" <al************ *******@btopenw orld.com> wrote in message news:<bu******* ***@titan.btint ernet.com>...
I would like to be able to have pop up alarms on my database. i.e. A warning
that a date has been reached and an action is required.
I would like this to take the form of a message box giving the user a
warning that an action needs to be taken, perhaps something like checking
the date in a particular field and if one year has elapsed then a warning
would come up telling the user to perform a particular function on this
record.
Any ideas would be very helpful


Alan,
when did you want the alarm to pop up? If you want it to show at
startup, then that's easy. If you have a query that returns any
"actions" that have not been attended to tblAction(Alarm Date,
ActionTask, CompleteDate... ), then you could do something like:

1. Use either DCount or a recordset to get a count of records/events
that are due but not completed.
2. If the count>0 then use MsgBox to open a form with just the due
records (just pass a filter to the form in the open event).

If you're doing it when the application opens, then just set the code
in the startup event of your database. If you need it to happen while
the database is open, you'd need to have a timer on a form execute the
steps for you. The timer stuff is at www.mvps.org/access

HTH,
Pieter
Nov 12 '05 #3

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

Similar topics

1
1976
by: Sergey | last post by:
How to send alarm to a thread? I can set alarm in main thread, but how then send exception to another thread to wake it if it executes too long?
1
1428
by: Slez via AccessMonster.com | last post by:
Is it possible to trigger an auto-email or some type of pop-up alarm to a particular user after a new record is entered in an Access database by other users? Entry of the new records is in a subform. Thanks in advance! -- Message posted via http://www.accessmonster.com
7
11068
by: Adrian Casey | last post by:
I have a multi-threaded python application which uses pexpect to connect to multiple systems concurrently. Each thread within my application is a connection to a remote system. The problem is when one of the child threads runs a command which generates an unlimited amount of output. The classic example of this is the "yes" command. If you execute "pexpect.run('yes')", your cpu will sit at 100% forever. Here is a simple multi-threaded...
3
3515
by: ankitks | last post by:
Hi guys, is there any utility available as a protection against endless_loop() something like this: alarm.set(5); //set timeout for 5 sec endless_loop(); alarm.reset(); //reset it to 0, as alarm not needed any more
0
1199
by: puntino | last post by:
Hi I have developed an Alarm, I haven' problem of runtime or compiletime but the application seems blocked. When I call the method AlarmExecute, it runs only the first time ( when i click onto run button of Eclipse), I seen only one time the hour in the console! please could anyone help me. This the code import java.util.Timer ; public class Alarm { private int s;
0
1264
by: thelightkeeper | last post by:
Hi, in MSSQL, I have 2 tables naming , --------------------------------------- EquipmentID : nvarchar(50), FK, reference .EquipmentID AlarmID : nvarchar(50), PK AlarmHappenTime : Datetime ,required, not null AlarmClearTime : Datetime, required, not null
2
1446
by: Alan Isaac | last post by:
Goal: turn off an audible alarm without terminating the program. For example, suppose a console program is running:: while True: sys.stdout.write('\a') sys.stdout.flush() time.sleep(0.5) I want to add code to allow me to turn off
6
3071
by: MrDeej | last post by:
Hello! I have code wich scans the through 10 computers on a LAN for files and import them into different tabels. This code aproximitly imports 10 000 files (with 1 to 20 rows of info) a day and is running looped (i have 'do' and 'loop' in the top and bottom of the code) and have to be started and stopped manually. Because i want the files to be imported almost instantly when they are created i let the code just loop and go through as fast...
8
2660
by: superleochen | last post by:
Database is simliar to this: ID TIME TAGNAME VALUE 5967383 8/1/2008 1:00:24 AM I16MUDL11 ALARM 5967384 8/1/2008 1:00:24 AM I16MUDL09 ALARM 5967391 8/1/2008 1:00:32 AM I16MUDL11 A_OK 5967392 8/1/2008 1:00:32 AM I16MUDL09 A_OK 5967398 8/1/2008 1:00:36 AM I16MUDL11 ALARM...
0
8700
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8581
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7298
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4285
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2701
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1910
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.