My application has a provider table that contains name, email, phone, etc., which is linked to an address table so that the provider can have more than one physical address on file. Everything works fine, but I want to allow admins to delete addresses BUT require at least one address for each provider, so if there is more than one address they can delete, but when there is only one address they cannot delete anymore. The address table has a pointer to the ProviderID so that I know what addresses go with each provider, but I don't know if there is a query or a trigger that I can use with Caspio so that I can check that there is more than one address for a provider before I let an address be deleted. I hope this makes sense. Thanks in advance for any ideas.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
anyalynn
My application has a provider table that contains name, email, phone, etc., which is linked to an address table so that the provider can have more than one physical address on file. Everything works fine, but I want to allow admins to delete addresses BUT require at least one address for each provider, so if there is more than one address they can delete, but when there is only one address they cannot delete anymore. The address table has a pointer to the ProviderID so that I know what addresses go with each provider, but I don't know if there is a query or a trigger that I can use with Caspio so that I can check that there is more than one address for a provider before I let an address be deleted. I hope this makes sense. Thanks in advance for any ideas.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.