mattdaddyjuice
Member
- Joined
- Jan 15, 2009
- Messages
- 21
- Programming Experience
- 5-10
I have a vb.net app that manages orders for a small retail store. If they have placed two of the same item in the same order and only need 1, there is a button to delete the item from the database.
The problem comes in my SQL statement which is "DELETE FROM OrderSpecs WHERE Style = '" & style & "' AND Color = '" & color & "' AND Order = '" & order & "' "
This removes both entries from the database since they have the same values. I was wondering if there is a way to delete only the first entry that fits this statement. Thanks
The problem comes in my SQL statement which is "DELETE FROM OrderSpecs WHERE Style = '" & style & "' AND Color = '" & color & "' AND Order = '" & order & "' "
This removes both entries from the database since they have the same values. I was wondering if there is a way to delete only the first entry that fits this statement. Thanks