PC Review


Reply
 
 
JimS
Guest
Posts: n/a
 
      21st Jan 2010
So here's a strange one. I dim a recordset (rst) and open it against a table
in my temp database, simple enough. No problem. But when I issue a rst.find
command, it returns rst.eof, meaning it didn't find the key. Well the key is
there, no question. I try "trim", that doesn't affect the rst.find result.

Finally, I check the status of rst.Filter property. Sure enough, it reports
"0". Well, I figure I'm an idiot, and I must have set it...nope. Never set.
Came from the factory that way....

So, I proceed to set it to "" before every rst.find, and all is well.

Any ideas where that crazy filter came from? ADO Bug?
--
Jim
 
Reply With Quote
 
 
 
 
Stefan Hoffmann
Guest
Posts: n/a
 
      21st Jan 2010
hi Jim,

On 21.01.2010 16:03, JimS wrote:
> Any ideas where that crazy filter came from? ADO Bug?

It's not easy to guess without a concise and complete example... can you
provide one?


mfG
--> stefan <--
 
Reply With Quote
 
wqweto
Guest
Posts: n/a
 
      3rd Feb 2010
From the typelib: adFilterNone = 0

So this basicly means "no filter", the way they come from the factory...

cheers,
</wqw>

"JimS" wrote:

> So here's a strange one. I dim a recordset (rst) and open it against a table
> in my temp database, simple enough. No problem. But when I issue a rst.find
> command, it returns rst.eof, meaning it didn't find the key. Well the key is
> there, no question. I try "trim", that doesn't affect the rst.find result.
>
> Finally, I check the status of rst.Filter property. Sure enough, it reports
> "0". Well, I figure I'm an idiot, and I must have set it...nope. Never set.
> Came from the factory that way....
>
> So, I proceed to set it to "" before every rst.find, and all is well.
>
> Any ideas where that crazy filter came from? ADO Bug?
> --
> Jim

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:39 AM.