Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing files into Access 2000

Status
Not open for further replies.

Haldane

IS-IT--Management
Mar 13, 2002
18
0
0
NZ
I have written a small access database that imports a file into a table, converts it and then exports it to a csv file so it can be imported into another program.
I need to be able to import about 5000 files each with a different extension into access (1 at a time)

Is there any way I can add a global command (ie .*) in the DisabledExtensions area in the registry?

Or is there a way I can rename the file before I import it into access through the use of a access macro?.

Brendon
 
Use the Name statement to rename the file:

Name "C:\Path\OldName.ext" As "C:\Path\NewName.txe"

or make a copy of it to a specific folder:

FileCopy "C:\Path\OldName.ext", "C:\specificPath\NewName.txe"


Regards,

Dan
[pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top