473,405 Members | 2,444 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,405 software developers and data experts.

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 3743
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*******************@btopenworld.com> wrote in message
news:bu**********@titan.btinternet.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*******************@btopenworld.com> wrote in message news:<bu**********@titan.btinternet.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(AlarmDate,
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
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
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...
7
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...
3
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,...
0
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...
0
by: thelightkeeper | last post by:
Hi, in MSSQL, I have 2 tables naming , --------------------------------------- EquipmentID : nvarchar(50), FK, reference .EquipmentID AlarmID : nvarchar(50), PK AlarmHappenTime :...
2
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) ...
6
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...
8
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...
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
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
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.