#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default mdb - xls

hello,

does anybody know how can i convert access mdb into excel xls file
(mdb table into xls sheet)

is it possible at all?

i have almost 100 mdbs to convert (i'd like to do it in loop)

best regards

ps. i hope i wrote on proper newsgroup (if not, please write what
group is best to write about this problem)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default mdb - xls

Just one table in each mdb or many tables ?

I would use ADO to query the tables and then the recordset's
copyfromrecordset method to dump tp a worksheet.
Use Dir() or similar method to loop through the databases (if they're all in
a common directory).

Tim

--
Tim Williams
Palo Alto, CA


"pm" wrote in message ...
hello,

does anybody know how can i convert access mdb into excel xls file
(mdb table into xls sheet)

is it possible at all?

i have almost 100 mdbs to convert (i'd like to do it in loop)

best regards

ps. i hope i wrote on proper newsgroup (if not, please write what
group is best to write about this problem)



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default mdb - xls

Tim Williams wrote:

Just one table in each mdb or many tables ?


many tables, different names and number of tables in each of 80 mdbs
mdb are named 1.mdb, 2.mdb and so on...
(example he http://miodek.no-ip.org/~zdj/example.mdb)

I would use ADO to query the tables and then the recordset's
copyfromrecordset method to dump tp a worksheet.
Use Dir() or similar method to loop through the databases (if they're all in
a common directory).



i understand, but i do now really know how to organize sucha a conversion..

create one xls file with macro, which imports tables to sheets to
particular xls (1.xls, 2.xls and so on)?

rgs
Peter
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default mdb - xls

What's the need for this conversion? That might determine the most suitable
approach...
In general probably creating one workbook for each mdb, with one worksheet
for each table would be reasonable.

How much data (rows)? Will you run up against the Excel row limit (65k)?

In general I don't download "sample" files unless from a site I'm familiar
with, so I didn't look at your example.



Tim

--
Tim Williams
Palo Alto, CA


"pm" wrote in message ...
Tim Williams wrote:

Just one table in each mdb or many tables ?


many tables, different names and number of tables in each of 80 mdbs
mdb are named 1.mdb, 2.mdb and so on...
(example he http://miodek.no-ip.org/~zdj/example.mdb)

I would use ADO to query the tables and then the recordset's
copyfromrecordset method to dump tp a worksheet.
Use Dir() or similar method to loop through the databases (if they're

all in
a common directory).



i understand, but i do now really know how to organize sucha a

conversion..

create one xls file with macro, which imports tables to sheets to
particular xls (1.xls, 2.xls and so on)?

rgs
Peter



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default mdb - xls

Tim Williams wrote:

How much data (rows)? Will you run up against the Excel row limit (65k)?


usually less then200-300 rows..

In general I don't download "sample" files unless from a site I'm familiar
with, so I didn't look at your example.


this site is on my computer :)


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default mdb - xls

You can use ADOX to get a list of the tables in each mdb. Create a new
workbook and for each table a new sheet.
Use ADO to get the records from each table and dump them to the appropriate
sheet.

Next mdb new workbook
etc etc


Tim

--
Tim Williams
Palo Alto, CA


"pm" wrote in message ...
Tim Williams wrote:

How much data (rows)? Will you run up against the Excel row limit

(65k)?

usually less then200-300 rows..

In general I don't download "sample" files unless from a site I'm

familiar
with, so I didn't look at your example.


this site is on my computer :)



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"