Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default RECORDSET file name length limit?

Here's a snippet of the code I'm using:

oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strFilePath & ";" & _
"Extended Properties=""text;HDR=Yes;FMT=Delimited"""

Set oRS = CreateObject("ADODB.RECORDSET")

'Now actually open the text file and import into Excel
oRS.Open "SELECT * FROM " & strFilename, oConn, 3, 1, 1


When I do the oRS.Open, it fails to find the file. I renamed the file
to something shorter, and it works. Is there a limit to the length of
the file name or the path for this operation? Was it that my file name
contained multiple dots, or an underscore? I could test each of these,
and I probably will (it is still running, the file is... rather
large...) but if someone knows what the problem is then that would be
nice.

Phil Hibbs.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default RECORDSET file name length limit?

It seems to have been the extra . in the filename, it was in the form
XXXX.YYYY.csv. Very annoying, I don't want to have to rename my files,
so I have to copy it to a different file name and then delete the
temporary copy after.

Phil Hibbs.
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit to the length of a list in a combo box Fraser B Excel Discussion (Misc queries) 3 February 9th 09 02:44 PM
Text length limit ConfusedAsEver945 Charts and Charting in Excel 1 February 12th 08 09:31 AM
Is there a limit on the length of a PrintArea? Chuck M Excel Programming 2 July 16th 07 07:10 PM
number length limit jhahes[_48_] Excel Programming 2 March 21st 06 11:19 PM
Limit text length with inputBox BigDave[_7_] Excel Programming 2 June 10th 05 07:11 PM


All times are GMT +1. The time now is 12:12 AM.

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

About Us

"It's about Microsoft Excel"