Hello There,
I have a query -- I have multiple access files in a partticilar folder and looking for a way to get some data in an excel file...
I tried excel import query and created a .dqy file but it seems to work with just one file
XLODBC
1
DBQ=C:\Documents and Settings\sc20293\My Documents\Dfma\data\samples\machined part.mdb;DefaultDir=C:\Documents and Settings\sc20293\My Documents\Dfma\data\samples;Driver={Driver do Microsoft Access (*.mdb)};DriverId=25;FIL=MS Access;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=5;SafeTransactions=0;Threads=3;UID=admin;UserCommitSync=Yes;
SELECT Analysis.AnalysisName, Entry.ParentID, Entry.Name, Entry.CurrentMaterialCost, Entry.CurrentSetUpCost, Entry.CurrentProcessCost, Entry.CurrentPiecePartCost, Entry.CurrentToolingCost, Entry.CurrentTotalCost FROM Analysis Analysis, Entry Entry WHERE Analysis.ID = Entry.ID AND ((Entry.ParentID=0))
AnalysisName ParentID Name CurrentMaterialCost CurrentSetUpCost CurrentProcessCost CurrentPiecePartCost CurrentToolingCost CurrentTotalCost
Out put
But I am looking for a code which can extract data from all files in a folder and push in an excel file....
I am open for any VBA code also if that seems to work.....
Thank you In Advance....
SRC
I have a query -- I have multiple access files in a partticilar folder and looking for a way to get some data in an excel file...
I tried excel import query and created a .dqy file but it seems to work with just one file
XLODBC
1
DBQ=C:\Documents and Settings\sc20293\My Documents\Dfma\data\samples\machined part.mdb;DefaultDir=C:\Documents and Settings\sc20293\My Documents\Dfma\data\samples;Driver={Driver do Microsoft Access (*.mdb)};DriverId=25;FIL=MS Access;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=5;SafeTransactions=0;Threads=3;UID=admin;UserCommitSync=Yes;
SELECT Analysis.AnalysisName, Entry.ParentID, Entry.Name, Entry.CurrentMaterialCost, Entry.CurrentSetUpCost, Entry.CurrentProcessCost, Entry.CurrentPiecePartCost, Entry.CurrentToolingCost, Entry.CurrentTotalCost FROM Analysis Analysis, Entry Entry WHERE Analysis.ID = Entry.ID AND ((Entry.ParentID=0))
AnalysisName ParentID Name CurrentMaterialCost CurrentSetUpCost CurrentProcessCost CurrentPiecePartCost CurrentToolingCost CurrentTotalCost
Out put
But I am looking for a code which can extract data from all files in a folder and push in an excel file....
I am open for any VBA code also if that seems to work.....
Thank you In Advance....
SRC