J
|
Jane 12/1/2006 |
Steve, Function BeforeAdd(dict) ' Parameters: ' dict - Scripting.Dictionary object. ' Each field on the Add form represented as 'Field name'-'Field value' pair if dict("Received")="Yes" and dict("emailsent") = "no" then message ="" keys = dict.keys For n = 0 To dict.Count-1 message = message & keys(n) & " : " & dict(keys(n)) & vbcrlf Next email="steve@networkcar.com" subject="New data record TEST TEST" sendmail email, subject, message dict("emailsent")="Yes" end if BeforeAdd = True End Function |