Populating Data from one Table to another

DavidAC

Board Regular
Joined
Feb 10, 2003
Messages
134
Office Version
  1. 365
Help i must have my thick head on today. I have a table (staff) which contains a list of staff and their vehicle registrations. This table then needs to be used to populate another table which will contain records of accidents etc. How do i copy the necessary data choosen on the form from the staff table to the data table. :unsure:
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You could use DoCmd.CopyObject, "Employees Copy", acTable, "Employees"
if you want to copy all the data over. If you want to copy select data lines you probably need to write some code to take the item selected on your form and do a FindFirst (like a recordset) then do an insert SQL statement to put it in the other data table.
 
Upvote 0

Forum statistics

Threads
1,221,525
Messages
6,160,327
Members
451,637
Latest member
hvp2262

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