Re: Importing multiple files..
- From: MGFoster <me@xxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 20:44:08 GMT
Kathie via AccessMonster.com 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
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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"
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBRAS2H4echKqOuFEgEQImAgCfeajWeKkITIIlQaRNHUysDlEQKqkAn0k+
zO36ktKiywydxsDUN5tzOSvh
=eTF2
-----END PGP SIGNATURE-----
.
- Follow-Ups:
- Re: Importing multiple files..
- From: kathie via AccessMonster.com
- Re: Importing multiple files..
- References:
- Importing multiple files..
- From: Kathie via AccessMonster.com
- Importing multiple files..
- Prev by Date: Re: modifying relationships using DAO?
- Next by Date: Re: Efficient way to store photos
- Previous by thread: Importing multiple files..
- Next by thread: Re: Importing multiple files..
- Index(es):
Relevant Pages
|