OK, I will work with that.
Thank you all for your support.
--
David Lozzi
Associated Business & Technology Group
www.associatedbtg.com
I should've known that....but I had a brain fart.
"Bob Barrows" <reb_01501@yahoo.com> wrote in message
news:#sqdZuCYDHA.2352@TK2MSFTNGP12.phx.gbl...[color=blue]
> My initial instinct is to agree with Tom. I haven't seen any reason yet[/color]
for[color=blue]
> the ad hoc recordset. That's not to say you don't have one: just that you
> haven't sufficiently explained why you need one. So far, there isn't
> anything you are doing that could not be done more efficiently with an
> array. Even if you do need the ad hoc recordset, the "NOT" functionality
> should be pushed back further into the SQL statement where it belongs (as
> suggested by Aaron and others). You're pulling too much data across the
> wire.
>
> Bob Barrows
>
> David Lozzi wrote:[color=green]
> > What I am doing is reading through a recordset pulled from a SQL
> > statement query. I am loading some of these fields along with other
> > fields based on mathematical assumptions on the previous fields. For
> > example:
> >
> > sql = Select statement
> > rec = recordset
> >
> > do until sql.eof
> > cnt = cnt + 1
> > rec("a") = sql("a")
> > rec("b") = sql("b")
> > rec("c") = sql("d") - (sql("e") / 4")
> > rec("d") = cnt
> > sql.movenext
> > loop
> >
> > now i want to be able to filter the rec recordset. THe user has the
> > option to search NOT keyword. Can I repost a SQL Select statement
> > against the rec recordset?
> >
> > thanks!
> >
> >
> > I should've known that....but I had a brain fart.
> > "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
> > news:OCPVpkBYDHA.2572@TK2MSFTNGP09.phx.gbl...[color=darkred]
> >>> Can you provide an actual full SQL statement that gives you the
> >>> error?
> >>
> >> The problem is that the error is not coming from a SQL statement
> >> that David is generating. The error is coming from attempting to
> >> apply a NOT LIKE criteria to the filter property of an
> >> ADODB.Recordset. In other words, he's already sent a SQL statement
> >> to the database, and now in the ASP code he wants to limit the
> >> records he's already retrieved by applying a filter. Which, IMHO,
> >> belongs in the WHERE clause of the original statement.[/color][/color]
>
>[/color]