Re: ADO with Excel using .csv? (VB6-Pro)
- From: "Frustrated Again" <NoSpam@xxxxxxxxxx>
- Date: Tue, 13 Sep 2005 04:46:35 -0700
"Daniel Crichton" <msnews@xxxxxxxxxxxxxxxxxx> wrote in message
news:OU3LZ2DuFHA.2076@xxxxxxxxxxxxxxxxxxxxxxx
> Is there any reason why you're using the Excel driver instead of the Text
> driver? The Text driver is designed to read CSV and formatted text files.
> If you're just trying to read the data in a recordset and then do
> something with, the Text driver should handle it. There's a short example
> at http://www.vb-helper.com/howto_ado_load_csv.html
>
> Dan
Hi, Dan. Yes, of course there is a reason or I wouldn't waste my and others
time<g>. The text driver won't handle the .csv file properly due to type
mismatch in the csv columns, commas in a field in the raw .csv file that is
only comma delimited, and more. It takes a lot of parsing to make it all
come out right, but Excel will indeed do it. I needed to get it into Excel
so I could save it as a .xls, which ADO can easily move into an Access db
and I can then do typecasting myself, that Access needs, upon known cell
types in the code doing that ADO. Already had the ADO part done, just had an
error in the connection string that was pointed out in the
microsoft.public.vb.database.ado forum. I've got it all figured out now,
thanks, see it all in that forum.
.
- References:
- ADO with Excel using .csv? (VB6-Pro)
- From: Frustrated Again
- Re: ADO with Excel using .csv? (VB6-Pro)
- From: Frustrated Again
- Re: ADO with Excel using .csv? (VB6-Pro)
- From: Daniel Crichton
- ADO with Excel using .csv? (VB6-Pro)
- Prev by Date: Re: ADO with Excel using .csv? (VB6-Pro)
- Next by Date: Access mdb: avoid ldb w/o locking the file
- Previous by thread: Re: ADO with Excel using .csv? (VB6-Pro)
- Next by thread: Why does query take 1 minute or two hours to run?
- Index(es):
Relevant Pages
|
|