Re: To FETCH or NOT
From: george collins (george_at_nospan.com)
Date: 05/06/04
- Next message: george collins: "Re: To FETCH or NOT"
- Previous message: Gary German: "Re: How to Create New Table Using ADO connecting to Access 2000"
- In reply to: Al Reid: "Re: To FETCH or NOT"
- Next in thread: george collins: "Re: To FETCH or NOT"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 6 May 2004 14:19:01 -0700
Okay, I am trying this.
Here is what I am doing.
field(1) has a value of a part number which is like "123/456-7(8)A"
I need to make field(2) to be the text in field(1) with out the punctuation
of "/ or - or ( or )"
I now use a mid$(field) loop checking each character for / or - or ( or )
and loop thru the field and create a new field(2) and update it.
I am just having problems. (MENTAL) today with figuring it out.
Continuing on.
thanks
George
"Al Reid" <areidjr@reidDASHhome.com> wrote in message
news:ek5hZf5MEHA.2996@TK2MSFTNGP12.phx.gbl...
> How about:
>
> con.Execute "UPDATE myTable SET myField2 = myField1 WHERE...
>
> No Fetch, no loops, no hits, no errors.
>
> --
> Al Reid
>
> "It ain't what you don't know that gets you into trouble. It's what you
know
> for sure that just ain't so." --- Mark Twain
>
> "george collins" <george@nospan.com> wrote in message
news:%23Zo3hX5MEHA.3348@TK2MSFTNGP09.phx.gbl...
> > Newbie here.
> >
> > I need to update a single field in a row, 250000 rows, predicated on
data in
> > an existing field in the row.
> >
> > row.field(1) has value, then row.field(2) now has this value.
> >
> > I don't know how to loop through the table. A select * returns
everything
> > and I need to test each row at a time.
> >
> > Can someone point me in the right direction.
> >
> > I am using vb6 and ADO to SQL2000.
> >
> > Is fetch with a next the best way or is "withevents' best?
> >
> > Looking for guidance.
> > Thanks
> > George
> >
> >
>
>
- Next message: george collins: "Re: To FETCH or NOT"
- Previous message: Gary German: "Re: How to Create New Table Using ADO connecting to Access 2000"
- In reply to: Al Reid: "Re: To FETCH or NOT"
- Next in thread: george collins: "Re: To FETCH or NOT"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|