Hi everybody,
[Access 2003]
I created a database about a year ago that stores information about requests that users make to update reports. The fields in the database are updated using a Microsoft Outlook form. Basically, the user opens the Outlook form, fills in the info, sends it to an email group, the data is entered in the database, and the email is received by the members of the email group.
Usually, the Outlook form works just fine, but there have been few occasions when the email will get hung up in the user's Outbox. Strangely enough, the code behind the Outlook form still processes and enters the data into the database, but the email is sent to the members of the email group, which somewhat defeats the purpose of the database since it's used to notify the members of the group that a request has been submitted.
At some point in the future I plan on overhauling this whole process and using something a little more stable, but for the time being I've decided to make due with what I've got by making what I'm hoping are a couple of minor changes.
What I'm trying to do is setup a module or macro that will send an email to the email group whenever the table is opened or when certain fields are opened in that table (there's only one table...it's a simple database).
My problem is that I don't know how to trigger an event that monitors the opening of a table or the changing of data in a specific field on that table. I'm actually not even sure this is possible since the database is likely only open for a very short amount of time between when the email form is sent and the data is processed.
This database really isn't kept open at all and primarily only has action when an email form is sent, so I think (I could be wrong) that would eliminate using a timer to check periodically.
Is this possible and is there some example code I can view to create my module/macro?
Thanks,
beacon
[Access 2003]
I created a database about a year ago that stores information about requests that users make to update reports. The fields in the database are updated using a Microsoft Outlook form. Basically, the user opens the Outlook form, fills in the info, sends it to an email group, the data is entered in the database, and the email is received by the members of the email group.
Usually, the Outlook form works just fine, but there have been few occasions when the email will get hung up in the user's Outbox. Strangely enough, the code behind the Outlook form still processes and enters the data into the database, but the email is sent to the members of the email group, which somewhat defeats the purpose of the database since it's used to notify the members of the group that a request has been submitted.
At some point in the future I plan on overhauling this whole process and using something a little more stable, but for the time being I've decided to make due with what I've got by making what I'm hoping are a couple of minor changes.
What I'm trying to do is setup a module or macro that will send an email to the email group whenever the table is opened or when certain fields are opened in that table (there's only one table...it's a simple database).
My problem is that I don't know how to trigger an event that monitors the opening of a table or the changing of data in a specific field on that table. I'm actually not even sure this is possible since the database is likely only open for a very short amount of time between when the email form is sent and the data is processed.
This database really isn't kept open at all and primarily only has action when an email form is sent, so I think (I could be wrong) that would eliminate using a timer to check periodically.
Is this possible and is there some example code I can view to create my module/macro?
Thanks,
beacon
Comment