Jump to content
  • 0

One-To-Many Relationship for Sub ID




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.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...