Re: Can't seem to use FileSystemObject



On 6 mar, 17:24, "Tom" <rtmn...@xxxxxxxxxx> wrote:
Have you tried Chuck Grimsby's solution at: http://www.mvps.org/access/modules/mdl0057.htm.
It might solve both your issues.

Tom


I didn't even know this existed.

Thank you Tom, I'll check it out!

Bob:
I can't confirm that the file is a genuine csv. It has the csv
extension and is comma delimited, despite the lack of quotation marks
around text fields.
I'm working in Access, and I would be using automation to make Excel
open the file (because for unexplainable reasons, Excel reads it
properly and Access does not).

I haven't got as far as getting an error message. The editor doesn't
recognize the object or the function, so I'm assuming something along
the line of "undefined function". Is there any instance of the editor
not recognizing a function like that but still running it fine?

I was avoiding using TransferText on the csv because since Access does
not read the file properly, I was reluctant to put it into a table (I
would have extra fields for some records, which I'm afraid would
complicate things). Unless I'm reading the help file wrong and
TransferText doesn't put the data in a table?

OpenTextFile is an alternate way of reading a file, this time line by
line and as straight text, that I found in the help of the visual
basic editor. I've seen it refered to in this group when I searched
for it, but I can't honestly tell you whether it works in Access 2003.
All I know is that it's not working for me, thus my initial post.

I hope this clears things up, thanks for your reply. I'm going to
check Chuck Grimsby's solution and I'll post again if that doesn't
help.




.



Relevant Pages

  • Re: Excel to CSV
    ... Really nice text editor. ... > Remember, Kirk, if you re-open the CSV in Excel, then Excel will read the ... > the leading zeros. ... >> I'm stumped, Kirk. ...
    (microsoft.public.excel.misc)
  • Re: Importing csv files
    ... CSV is a comma delimited file exported from a spreadsheet program. ... Easiest way to start is by cracking open your .csv in a plain text ... editor to find 2 things: ...
    (microsoft.public.pocketpc.developer)
  • Re: Problems with VB 6.0
    ... Save the file as a CSV. ... editor can open a CSV file. ... BreezeTree Software ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: Limitation with transfertext to csv file?
    ... > string you're passing as the HTML table name and the export ... > Exporting standard CSV files doesn't normally need a spec (CSV is the ... I've just now used TransferText with no problems to ... > John Nurick ...
    (microsoft.public.access.externaldata)
  • Only two options to import Excel files?
    ... Convert them to CSV in Excel, then use TransferText (which does not ... command to XLS in VFP or an Append command to DBF or use Office ...
    (comp.databases.ms-access)

Loading