Re: Loop through elements in row of a text file being treated as a Rec
- From: Lee Peedin <lpeedinREMOVE@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Jun 2005 00:23:37 GMT
Sure, you can - I have some examples, but they're all in ooRexx.
Here's a link that should get you started.
BTW: If your .csv file has a header row witht the field/column names,
life will be much easier - if not you will have to create schema.ini
file.
http://www.microsoft.com/technet/scriptcenter/resources/qanda/may05/hey0524.mspx
Here's an even better link that contains comprehensive information on
using a schema.ini file to read a .csv without a header line.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting03092004.asp
Personally, I think ADO is a very powerful tool that is often
overlooked.
Lee
On Tue, 28 Jun 2005 11:45:06 -0700, "ebferro"
<ebferro@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>I have a text file that I've declared as a CSV text file. Each row in this
>text file has about 20 'columns' of data. Is there a way using the recordset
>object that I can loop through all of the columns in a particular row? The
>first column in every row contains an identifier. I'm using
>objRecordSet.Find to find the row for which I'm looking. Now, I'd like to
>read each column of data in that row and use that as search criteria to
>select records from another database. Is there a method to loop through the
>columns in each row sequentially to do this?
>TIA
>Ernie
.
- References:
- Prev by Date: Re: Placing URL stored in variable into IE
- Next by Date: Re: A newbie seeking some answers hopefully!
- Previous by thread: Re: Loop through elements in row of a text file being treated as a Rec
- Next by thread: AD:running vbscript at computer level GPO
- Index(es):
Relevant Pages
|