beerbsh316
Member
- Joined
- Jan 10, 2007
- Messages
- 10
- Programming Experience
- 5-10
I have a table for purchase orders that has a composite primary key of the columns PONumber and Line_Number. I am trying to set it up so that when the user edits a purchase order and deletes a line number from the PO it will reset the other line numbers(ex. User deletes line number 3 then line 4 becomes line 3 line 5 becomes 4 and so on). The problem is whenever I try to do this I get a unique constraint error which should not happen because the row that was removed has already been deleted from the table. I have confirmed that the datatable I am using does not contain a row with the primary key I am changing. So how do I get around this.