473,396 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Import Multiple Files

I'm trying to import multiple files that contain the following
directory structure:

c:\main\subfolder1\sample.mdb
c:\main\subfolder2\sample.mdb
c:\main\subfolder3\sample.mdb

where the subfolder names are not consistent although the actual
sample databases are the same format.

How can this be accomplished. I'm able to select all the folders but
as soon as click the open button, it puts me in either the first or
last subfolder.

Thanks for your help.
Nov 13 '05 #1
4 4120
On 24 May 2004 19:51:31 -0700, an**********@aol.com (ano1optimist)
wrote:

Write a bit of VBA code.
What do you mean 'names are not consistent'? If they are predictable
the code can figure it out; if not, perhaps you can do a multi-select
and work with the File/Open dialog results to access the various
subfolders.

-Tom.

I'm trying to import multiple files that contain the following
directory structure:

c:\main\subfolder1\sample.mdb
c:\main\subfolder2\sample.mdb
c:\main\subfolder3\sample.mdb

where the subfolder names are not consistent although the actual
sample databases are the same format.

How can this be accomplished. I'm able to select all the folders but
as soon as click the open button, it puts me in either the first or
last subfolder.

Thanks for your help.


Nov 13 '05 #2
On 24 May 2004 19:51:31 -0700, an**********@aol.com (ano1optimist)
wrote:

Write a bit of VBA code.
What do you mean 'names are not consistent'? If they are predictable
the code can figure it out; if not, perhaps you can do a multi-select
and work with the File/Open dialog results to access the various
subfolders.

-Tom.

I'm trying to import multiple files that contain the following
directory structure:

c:\main\subfolder1\sample.mdb
c:\main\subfolder2\sample.mdb
c:\main\subfolder3\sample.mdb

where the subfolder names are not consistent although the actual
sample databases are the same format.

How can this be accomplished. I'm able to select all the folders but
as soon as click the open button, it puts me in either the first or
last subfolder.

Thanks for your help.


Nov 13 '05 #3
ano1optimist wrote:
I'm trying to import multiple files that contain the following
directory structure:

c:\main\subfolder1\sample.mdb
c:\main\subfolder2\sample.mdb
c:\main\subfolder3\sample.mdb

where the subfolder names are not consistent although the actual
sample databases are the same format.

How can this be accomplished. I'm able to select all the folders but
as soon as click the open button, it puts me in either the first or
last subfolder.

Thanks for your help.


Select the root folder,

Use the Dir() function to go through each folder one at a time..

Hope that helps.
--
regards,

Bradley
Nov 13 '05 #4
ano1optimist wrote:
I'm trying to import multiple files that contain the following
directory structure:

c:\main\subfolder1\sample.mdb
c:\main\subfolder2\sample.mdb
c:\main\subfolder3\sample.mdb

where the subfolder names are not consistent although the actual
sample databases are the same format.

How can this be accomplished. I'm able to select all the folders but
as soon as click the open button, it puts me in either the first or
last subfolder.

Thanks for your help.


Select the root folder,

Use the Dir() function to go through each folder one at a time..

Hope that helps.
--
regards,

Bradley
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ezekiël | last post by:
Hi, How can i import multiple accessfiles in sql server 2000 by using a dts package? The dts package should import files with the most current date in a directory (not today's date). The date...
2
by: The Pig | last post by:
Guys, Got a bunch of DBF files all named pikcup.dbf. They are all stored under a directory named c:\reports but are all under multiple sub directories. I need Access to import all pickup.dbf...
4
by: Farina | last post by:
Hello, I have a directory on my company network that contains multiple directories that each hold different files, some are dbf files and some are xls files. I need my Access 2000 users to be...
4
by: Bruce W. Roeser | last post by:
All, I'm reading a book by Charles Petzold (Programming VS.Net). Pretty good content but am confused about the difference. From the text: ...
3
by: Neter Smith | last post by:
I have run into a problem when trying to import a WSDL reference under VS 2003 and 1.1 of the framework. It appears as if it is in the generation of the proxy that things are failing. When I...
1
by: Chicagoboy27 | last post by:
Is there a way to import multiple csv files from a directory into sql 2005? The situation I have right now is that I have a folder with multiple csv files that i need to import into sql 2005. I can...
7
by: Pete | last post by:
I need to import multiple tab delimited files for which I do not have the formats. All files have column headers in the the line. The files must be dynamic. The only common value is that the...
49
by: Martin Unsal | last post by:
I'm using Python for what is becoming a sizeable project and I'm already running into problems organizing code and importing packages. I feel like the Python package system, in particular the...
3
by: SMALLp | last post by:
Hy! I'm new in Linux, and i feel little less newer in python. I need advice and help. I'm making an application witch purpose is irrelevant. It has a lot of code for now and I've only made...
4
by: Alvin SIU | last post by:
Hi all, I have 6 tables inside a MS Access 2003 mdb file. I want to convert them as DB2 version -8 tables in AIX 5.2. I have exported them as 6 XML files. The XML files look fine. Each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.