A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

information massage when a record entered to the DB



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2007, 12:24 PM posted to microsoft.public.access
Rach
external usenet poster
 
Posts: 17
Default information massage when a record entered to the DB

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!
  #2  
Old April 15th, 2007, 12:56 PM posted to microsoft.public.access
Allen Browne
external usenet poster
 
Posts: 11,706
Default information massage when a record entered to the DB

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.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"rach" wrote in message
...
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!


  #3  
Old April 16th, 2007, 06:46 AM posted to microsoft.public.access
Rach
external usenet poster
 
Posts: 17
Default information massage when a record entered to the DB

thank you,
can you explain me how can i design it at the interface level ?


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.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"rach" wrote in message
...
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!



  #4  
Old April 16th, 2007, 11:13 AM posted to microsoft.public.access
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default information massage when a record entered to the DB

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.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"rach" wrote in message
...
thank you,
can you explain me how can i design it at the interface level ?


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.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"rach" wrote in message
...
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!





  #5  
Old April 16th, 2007, 11:15 AM posted to microsoft.public.access
Allen Browne
external usenet poster
 
Posts: 11,706
Default information massage when a record entered to the DB

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.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"rach" wrote in message
...
thank you,
can you explain me how can i design it at the interface level ?


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.

"rach" wrote in message
...
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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:21 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.