UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

> Data updated with link    
 
   
TeancumTBH
post Jan 28 2008, 11:35 AM
Post #1

UtterAccess Addict
Posts: 161



Hi, I'm not sure if this is where this question belongs, but it doesn't fit very well anywhere else. I have tblExports which is a link to an ODBC table that refreshes every 60 minutes. Is there a way to receive an e-mail from my Access db when certain fields in the linked table are updated? I started simple, so if you have any questions, please feel free to ask. I appreciate the help.
Go to the top of the page
 
+
 
Start new topic
Replies (1 - 5)
theDBguy
post Jan 28 2008, 12:53 PM
Post #2

Access Wiki and Forums Moderator
Posts: 48,021
From: SoCal, USA



First question: How are the fields updated?
Go to the top of the page
 
+
TeancumTBH
post Jan 28 2008, 01:10 PM
Post #3

UtterAccess Addict
Posts: 161



Easy answer - my IT department does it. :-)
I'm kidding, sort of. I know that's not the answer you're looking for. I don't know what is being done behind the scenes to update the information. Once an hour there is something that a programmer wrote that updates all fields in the table. I have that table linked to my Access db. I belive that the linked table is from an Oracle db.
Go to the top of the page
 
+
theDBguy
post Jan 29 2008, 01:59 AM
Post #4

Access Wiki and Forums Moderator
Posts: 48,021
From: SoCal, USA



The easiest way would be to have the same program that updates the fields to also send the email out. Assuming that that is not possible, are you concerned about knowing if a new record is added or if any field was updated?

For new records, you can query the RecordCount of the tables every so often and send the email when a difference is detected. For field updates, that would be a little harder. Please explain more.
Go to the top of the page
 
+
TeancumTBH
post Jan 30 2008, 09:59 AM
Post #5

UtterAccess Addict
Posts: 161



I would need the field update functionality. It is a bill of lading field that is null until we ship an order. Once that happens, the bill of lading field is populated with a 13 digit number. What I'd like to do is have an e-mail generate based on when that field is populated.
Go to the top of the page
 
+
theDBguy
post Feb 3 2008, 01:51 AM
Post #6

Access Wiki and Forums Moderator
Posts: 48,021
From: SoCal, USA



Since I don't know how you're updating the field, I will give you an example of one way it could be done. I hope you will be able to use it.

In the AfterUpdate event of the control for the bill of lading, you can put something like this:

DoCmd.SendObject, acSendNoObject, , ,"ToAddy", "CcAddy", , "Item #" & Me.ItemID & " has been shipped.", "EmailBody", True

HTH
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 23rd May 2013 - 03:29 AM