Macro to import data from access

jcaple

New Member
Joined
Feb 16, 2002
Messages
4
I used the 'record new macro' function to copy data from two columns of my access database, and paste it into my spreadsheet. This works fine until I add another record, therefore meaning another field in each column. When I then run the macro, it only imports the same records as before, and does not include the new data. Any idea how to change the macro so that it includes all of the records in those two columns?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi,

I think you'll need to paste your code. How did you get the data from Access, was it with a query i.e. Data, Get External Data, New Database Query?

Regards,
D
 
Upvote 0
jacple -
I'm not sure you're on a success path by the recording of the copy/paste process with Access data. (Not having done it, I'm not really sure.)

What might be more fruitful is recording the query process through Data/Get External Data. That I've done, and it works.

Tom
 
Upvote 0
Thanks everyone! Got the macro working properly now, so I might yet finish my AS level coursework in time!
Anyone know of an equally good MS Access message board?!?
This message was edited by jcaple on 2002-02-17 09:47
This message was edited by jcaple on 2002-02-17 09:49
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,167
Members
448,870
Latest member
max_pedreira

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