Automatic Email Updates (1 Viewer)

erinkleiman

New member
Local time
Today, 03:09
Joined
Jul 10, 2002
Messages
8
I need to send an automatic email update every week when a certain event does not happen. Does anyone know if this is possible in Microsoft Access and if so how I would go about doing this? =)
 

shacket

Registered User.
Local time
Today, 03:09
Joined
Dec 19, 2000
Messages
218
You would use:

DoCmd.SendObject

to send an e-mail. Use VBA (perhaps when the database is exited?) to test for the certain event and send the e-mail if it has not occurred.

HTH
 

erinkleiman

New member
Local time
Today, 03:09
Joined
Jul 10, 2002
Messages
8
Event Exit Dabase

Shacket....
I have my code written and ready but I need to know what kind of module or macro I should use to implement this code when the database is exited.
Thanks a bunch!
 

shacket

Registered User.
Local time
Today, 03:09
Joined
Dec 19, 2000
Messages
218
If you only want to perform the test once every week, I would create a separate database that does the following:

(opens)
Checks to see if condition is met
Sends e-mail
Closes

Open this database weekly using task scheduler.

You would have the autoexec macro run VB code, which would look something like this:


** Check for the condition

If Condition = True Then DoCmd.SendObject ...

DoCmd.Quit (might be DoCmd.Close)

HTH
 

Users who are viewing this thread

Top Bottom