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
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
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,524 Super User 2024 Season 2
Martin Dráb 228,493 Most Valuable Professional
nmaenpaa 101,148