I am trying to create a one-to-many relationship for my app. I have one table with all of my orders. Each order has an ID. I have a checkbox in the case this order needed to be split into two.
I'm trying to set it up so if the split checkbox is checked then the record is duplicated to new table, copies over the same ID, and then gives it a Sub_ID.
Something like this:
Order ID Sub order
1234 1
1234 2
I've been trying to set this up with the How To articles and with triggers and cannot get it to work. 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
kpcollier
Hello.
I am trying to create a one-to-many relationship for my app. I have one table with all of my orders. Each order has an ID. I have a checkbox in the case this order needed to be split into two.
I'm trying to set it up so if the split checkbox is checked then the record is duplicated to new table, copies over the same ID, and then gives it a Sub_ID.
Something like this:
Order ID Sub order
1234 1
1234 2
I've been trying to set this up with the How To articles and with triggers and cannot get it to work. 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.