![]() |
Sergey Kornilov admin 8/15/2007 |
The easiest way is to send a URL of the view page. |
L
|
lbragg 1/14/2008 |
Does anyone have an example of sending and email like this where the email contains the edited record link to the view page. |
![]() |
Sergey Kornilov admin 1/15/2008 |
You can use the following approach to build a link to the View page: strURL = "http://www.yourwebsite.com/table_name_view.asp?editid1="; & Request("editid1") |
L
|
lbragg 1/23/2008 |
Here is what I found to work. |
L
|
lbragg 2/29/2008 |
Humm..... I am trying to figure out why this is not working. I had it working before in an event code Before record updated and recieved emails after a record was edited. but now I am trying to get it to work using After record is Added and to no evail. I get a email but the link is missing the "detail id" and what I would realy like to do is get a link to the mastertable list view. Is there a different coding to get a record id when adding then there is when editing? |
L
|
lbragg 3/2/2008 |
'Nevermind, I figured it out. I thought I would post so anyone else looking for something like this would know how. |
S
|
staddeo 4/25/2009 |
hi leo 'Nevermind, I figured it out. I thought I would post so anyone else looking for something like this would know how. 'place this script in events under Add page After record is added 'Change the following variables: '1.)test@yourweb.com '2.)text you want in subject goes here '3.)website.com/your_table_list '4.)tablenameherer 'Here is sample script: email=session("userid")& ", test@yourweb.com" subject="text you want in subject goes here" message="http://website.com/your_table_list.asp?mastertable=tablenameherer&masterkey1=" message= message & SESSION(strTableName & "_masterkey1") sendmail email, subject, message |
J
|
Jane 4/27/2009 |
Hi, message="http://website.com/your_table_view.asp?editid1=" & keys("RecordID")
|
S
|
staddeo 4/27/2009 |
This worked great, thanks so much. Hi, here is a sample: where RecordID is your actual field name where primary key is stored. |
J
|
Jane 4/27/2009 |
Here is a sample: message ="" dkeys = dict.keys For n = 0 To dict.Count-1 message = message & dkeys(n) & " : " & dict(dkeys(n)) & vbcrlf Next message = message & "http://website.com/your_table_view.asp?editid1=" & keys("RecordID") |