PC Review


Reply
Thread Tools Rate Thread

cdonts with asp/database record update

 
 
robert
Guest
Posts: n/a
 
      2nd Mar 2006
I'm using access and FP 2000 to update records online, I'm trying to
find a/the code to update a record (NOT INSERT INTO) and send an email
confirmation, and I'm having a difficult time finding it. I've used FP
wizard to create the table display, and edit, but I cant program the
UPDATE page to both update the record and send an email confirmation.
I copied the code from an old CDONTS white paper from microsoft:

mySQL= "INSERT INTO Employees "
mySQL= mySQL & "(FirstName,LastName,Address,City,Region,PostalCode) "
mySQL= mySQL & "VALUES ('" & Request.Form("FirstName") & "','"
mySQL= mySQL & Request.Form("LastName") & "'"
mySQL= mySQL & ",'" & Request.Form("Address") & "'"
mySQL= mySQL & ",'" & Request.Form("City") & "','"
mySQL= mySQL & Request.Form("Region") & "','"
mySQL= mySQL & Request.Form("PostalCode") & "')"

And that works fine, it inserts and emails, but I want to send a
confirmation when an individual or administrator updates an individuals
record, and I CANT FIND ANYTHING! Please help, i'm new at this...not a
programmer but if you can recommend a tutorial I should be able to work
through it. Thanks in advance, the webserver is cdonts friendly.

 
Reply With Quote
 
 
 
 
Amy Blankenship
Guest
Posts: n/a
 
      3rd Mar 2006
After you've inserted, use a select to retrieve the record to confirm the
record exists.

I'd recommend CDOSYS instead of CDONTS, since it supports CSS better and
CDONTS is deprecated.

Try here http://www.brainjar.com/asp/formmail

HTH;

Amy

"robert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm using access and FP 2000 to update records online, I'm trying to
> find a/the code to update a record (NOT INSERT INTO) and send an email
> confirmation, and I'm having a difficult time finding it. I've used FP
> wizard to create the table display, and edit, but I cant program the
> UPDATE page to both update the record and send an email confirmation.
> I copied the code from an old CDONTS white paper from microsoft:
>
> mySQL= "INSERT INTO Employees "
> mySQL= mySQL & "(FirstName,LastName,Address,City,Region,PostalCode) "
> mySQL= mySQL & "VALUES ('" & Request.Form("FirstName") & "','"
> mySQL= mySQL & Request.Form("LastName") & "'"
> mySQL= mySQL & ",'" & Request.Form("Address") & "'"
> mySQL= mySQL & ",'" & Request.Form("City") & "','"
> mySQL= mySQL & Request.Form("Region") & "','"
> mySQL= mySQL & Request.Form("PostalCode") & "')"
>
> And that works fine, it inserts and emails, but I want to send a
> confirmation when an individual or administrator updates an individuals
> record, and I CANT FIND ANYTHING! Please help, i'm new at this...not a
> programmer but if you can recommend a tutorial I should be able to work
> through it. Thanks in advance, the webserver is cdonts friendly.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
update another database when entering in a record =?Utf-8?B?dGxu?= Microsoft Access Database Table Design 2 14th Nov 2006 10:36 AM
Update Record in a seperate Database =?Utf-8?B?bmVzaGV2?= Microsoft Access Form Coding 2 18th Aug 2006 05:29 PM
Update a record in an SQL database =?Utf-8?B?cmljaGFyZGI=?= Microsoft Access VBA Modules 7 28th Dec 2005 12:35 AM
Update a record in SQL Database from C#.NET =?Utf-8?B?TWloYWx5?= Microsoft C# .NET 3 31st Dec 2004 09:59 AM
update record in database rvik Microsoft Excel Misc 0 7th Feb 2004 08:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:18 PM.