CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Prevent a record from being deleted

Print topic Send  topic

Author Message
brandx


Posts: 29
Posted: 04/09/2005, 7:41 AM

Hi all

Codecharge 2.0.7
ASP / Access

I have a table that allow uses to add and delete records from. But I don't want them deleting the main record (default record) that exists (ID 1) in the table.

If there some type of code that i could put in the delete record onclick event... .something like if the ID = 1 then cancel delete...

Any other suggestions and examples would be appreciated.

Geary
View profile  Send private message
brandx


Posts: 29
Posted: 04/09/2005, 7:59 AM

I figured out a solution.....

on the record form properties change it to custom delete... then added a where statement

Where pid <> 1 (where pid does not equal 1)

:-)

Sweet.
View profile  Send private message

Add new topic Subscribe to topic   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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