information massage when a record entered to the DB

R

rach

hi,
I want to know if i can get an information massage when a new record enters
to my database,
1. when the access program opens.
2.when the access program close.
remark! the records coming from the intra-net, not from the access program.

my access version is 2003

thanks!
 
A

Allen Browne

No. Access lacks triggers. There is no event that fires at the engine level
when a new record is added.

You will therefore need to design it at the interface level, so that when
your (browser-based?) interface appends a new record, it also sends the
(email?) message to give you the notification.

Alternatively, you would need to leave Access running, with a form open, and
use the Timer event of the form to periodically check for new records and
SendObject to fire the email.
 
D

Douglas J. Steele

Allen already did explain.

In your code, where you have the code to append a new record, you need to
include code so that it also sends the message to give you the notification.
 
A

Allen Browne

Your original post said:
remark! the records coming from the intra-net,
not from the access program.

If this means your interface is a browser, it probably uses ASP or PHP to
access the database. If so, you need to modify the code in the ASP or PHP
script.

If the database is being opened in Access across your network, you can use
the AfterInsert event procedure of the form.
 
Top