Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Status Change, Send out E-mail

Status
Not open for further replies.

jmiller79

Programmer
Jul 13, 2004
48
US
Email automatically send out an email when the value of a field in a record changes?
For instance when someone looks at a record and the status says open. But they want an email as soon as the status changes to close. Can that be done and how or a brief idea. Thanks
 
When the user updates the database do an if statment like so:

'# some database code

If sStatus = "whatever" then
'# Do email code here
End If

www.sitesd.com
ASP WEB DEVELOPMENT
 
You may also like to look at setting up a trigger on the table that will send an email when the status is updated. Obviously this is dependent on the db you are using.

--James
 
James does MySQL support this option?

www.sitesd.com
ASP WEB DEVELOPMENT
 
snowboardr :

Don't think MySQL does support this email feature, but I'm sure MS Access does :p
 
ouch

___________________________________________________________________

onpnt.com
SELECT * FROM programmers WHERE clue > 0
(0 row(s) affected) -->faq333-3811

 
Ya I sense a little aggression.

www.sitesd.com
ASP WEB DEVELOPMENT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top