CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Save after Cancel

Print topic Send  topic

Author Message
Linda
Posted: 07/31/2002, 12:12 PM

Hello All,

I'm using CC, MSAccess and ASP.

I am making a mailbox. If I show the message in a recordform, there are (besides the insert button) three buttons - Update, Delete and Cancel.
The Update button I'm using to answer the mail, the Delete button for delete the record and Cancel for going back to the mailgrid. So far no problem.
But I like to give the mailrecord a mark that the message was read (msgread = 1)if the user choose the Cancel button. I've tried the event before cancel: fldmsgread=1, but the record isn't saved, so that won't work.

Who has a solution for this (small) problem?

Thanks in advance

Linda
Nicole
Posted: 08/02/2002, 5:40 AM

Linda,
no operation with the table is made when Cancel is hit. User just redirected to the initial page.
So to update the record you should execute custom query in Before Cancel event. Here is sample asp code:
cn.execute "update table_Name set msgread=1 where primary_key_name= " & ToSQL(GetParam("PK_primary_key_name"), "Number")


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.