Log in

View Full Version : Is it possible to write vba to migrate data from excel into access?



wedd
01-31-2011, 04:33 AM
Hi there, is there any vba code that can migrate data from an exel spreadsheet (i.e pivot tables and specifc data in cells from a worksheet), into a access report using vba code? If so, how can this be done? Would you have any examples of code to do this? I'm keen to increase the knowledge I have of vba...are there any websites which explain vba coding migration relationships between ms access and ms excel?


Thanks for your contributions:friends:

L@ja
01-31-2011, 08:37 AM
hi,
start with the linked tbl's...
you can connect tbl to excel sheets...
then you can use this new tbl in query...
if data in the query then you can paint to any rep...

regards

CreganTur
02-01-2011, 06:45 AM
DoCmd.TransferSpreadsheet

It has an import specification that you can use to pull the records from Excel into an existing or new table.

wedd
02-01-2011, 10:17 AM
Thanks, Cregan Tur!

CreganTur
02-01-2011, 10:44 AM
If your question is adequetly answered in any thread, please remember to mark that thread as solved by clicking Thread Tools -> Mark As Solved near the top of this page.