Re: Importing multiple files..
- From: "kathie via AccessMonster.com" <u2388@uwe>
- Date: Tue, 28 Feb 2006 21:02:34 GMT
Thanks for the response. Neither worked. The code was ok until the file
changed. The file changed (not the name) from a comma delimited to a tab
delimited. I tried even changing the extension to a *.txt and that did not
work. I have also changed the specifications in "Genetics Imports" and nodda.
... :(
MGFoster wrote:
Hello,<SNIP>
I have to import monthly, files that were once *.csv but due to commas in
addresses, the interface program was changed to dump tab delimited. Now my
code is not finding the files in the folder? The code is below - can anyone
help? (The files still are named with the extension of *.csv)
' the pathname of the folder that contains the files for import<SNIP>
strInputDir = "S:\Council\APPS\GENETICS\CURRENT\"
strImportFile = Dir(strInputDir & "\*" & strFileExt)<SNIP>
Set db = CurrentDb
The path name has 2 \ characters after the concatenation:
S:\Council\APPS\GENETICS\CURRENT\\*.csv
Change this:
strImportFile = Dir(strInputDir & "\*" & strFileExt)
to this:
strImportFile = Dir(strInputDir & "*" & strFileExt)
Or, change this:
strInputDir = "S:\Council\APPS\GENETICS\CURRENT\"
to this:
strInputDir = "S:\Council\APPS\GENETICS\CURRENT"
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/200602/1
.
- Follow-Ups:
- Re: Importing multiple files..
- From: MGFoster
- Re: Importing multiple files..
- References:
- Importing multiple files..
- From: Kathie via AccessMonster.com
- Re: Importing multiple files..
- From: MGFoster
- Importing multiple files..
- Prev by Date: Re: Querying for No Records?
- Next by Date: Re: What is wrong with my code??
- Previous by thread: Re: Importing multiple files..
- Next by thread: Re: Importing multiple files..
- Index(es):
Relevant Pages
|