query to load new items from one db to another

bazbuyer

New Member
Joined
Dec 20, 2017
Messages
27
Office Version
  1. 2016
Hi
I have database 1 that I query to post to db2. Db1 has say 26 columns (with header row the same name as db2) and there are say 20 columns I want to upload to db2. Db2 contains the same (as the 20) but also additional columns in a different order (so different columns inbetween) and db2 is also used for different purposes so the upload from db1 is just one data source, so I want the db1 to create new rows (when applicable - there may only be 1 to 2 rows added per week) without it importing those rows as a table. So upon refresh I want a row of data to appear on the next blank row in another database, and then I can fill in the blanks/additional fields or questions that that database needs. So effectively a type of merge.

Also to note that db1 is also itself a query that pulls from another db(0) which itself captures data from db-1(which is overwritten daily).

Is the approach to do this to run a macro that looks in db1 finds any item tagged as 'new' find the issue ID number from that row and put it in the issue ID column (next available row) then refresh the query which will now find the relationship connection and upload all the other data as well as when any data in both db1 and 2 changes? In which case does anyone have any ideas for the vba to do this? thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,223,793
Messages
6,174,626
Members
452,575
Latest member
Fstick546

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