Dear All
I have make a table and form for create data ,
I want to restrict deletion of a record if its id is in use
please help me
*This post is locked for comments
Dear All
I have make a table and form for create data ,
I want to restrict deletion of a record if its id is in use
please help me
*This post is locked for comments
msdn should help here
msdn.microsoft.com/.../bb315018.aspx
shortly
1) create relationship on child table (relationship between child and header table)
2) go to parent table and expand it. reach to delete actions.
3) right click and click on create new delete action. right click newly created delete action and click on properties. mention name of child table. and for property delete action select Restricted
how to use DeleteAction to restrict the deletion
Hi Temur Mukbaniani
I make a RoutTable and
I have attached RoutId with customer in custtable , and
I want to restrict deletion of routeid witch use with customer
You have two options:
a) you can use a Relation to define the link between your custom records and where they are used, and use a DeleteAction to restrict the deletion on the table where they are used.
b) you can write code in the validateDelete method on the table and implement the checking logic here.
you need to define "In Use"
if you are referring to child-parent records, "delete actions" is the answer, with type Restricted
André Arnaud de Cal...
293,041
Super User 2025 Season 1
Martin Dráb
231,856
Most Valuable Professional
nmaenpaa
101,156
Moderator