Copy table row data to same table

Tcurtis

Board Regular
Joined
Aug 15, 2009
Messages
149
I have a question about copying data to the same table. I have a table that is imported each day. Sometimes the data has a quantity of 2 instead of 1 when a shipment is received. I would like to split that data into two rows in my table, each with unique Key numbers. The query to find these is simple enough but I need to have each item as a unique number in my database.

Thanks
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Just use an Autonumber field. That will automatically assign a unique number to each record. You don't even have to tell it to do so, it will do it automatically.
You can use an Append Query to add your new row, and an Update Query to update the existing row (change the 2 to 1).
 
Upvote 0

Forum statistics

Threads
1,221,899
Messages
6,162,686
Members
451,782
Latest member
LizN

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top