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
|
 |
 |
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.
|
 |
 |
|