Fornatian
Dim Person
- Local time
- Today, 18:38
- Joined
- Sep 1, 2000
- Messages
- 1,394
Does anyone out there know how I can change a relationship type between tables programatically.
i.e. What I want to do is:
A. Provide a lookup list box with the option to delete items
B. When an item is selected, go away and lookup whether there are any related 'children'
C. If so, give the user the option to delete the item and all associated children.
(This is where I am having trouble because I beleieve I would have to change the relationship to one of cascading deletions/updates) on the fly, carry out the operation, then change it back again.
I suppose, one way to do it is with delete queries but I think the above method might be quicker? Any advice always welcomed.
i.e. What I want to do is:
A. Provide a lookup list box with the option to delete items
B. When an item is selected, go away and lookup whether there are any related 'children'
C. If so, give the user the option to delete the item and all associated children.
(This is where I am having trouble because I beleieve I would have to change the relationship to one of cascading deletions/updates) on the fly, carry out the operation, then change it back again.
I suppose, one way to do it is with delete queries but I think the above method might be quicker? Any advice always welcomed.