ADO Bug?

J

JimS

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?
 
S

Stefan Hoffmann

hi Jim,

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 <--
 
W

wqweto

From the typelib: adFilterNone = 0

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

cheers,
</wqw>
 
J

JimBurke via AccessMonster.com

Is is possible you set a filter in the table itself? I don't know if these
get saved or not, but if you open a table and view it you can set filters
from there. Maybe Access remembers these filters and you need to turn it off
from the table?just a thought, no idea if that could cause it, but it's easy
enough to check.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Really slow procedure A2007 ADO 3
Recordset with Find Method 2
SQL syntax and ADO 1
Find code errors 1
Newbie help with SQL & ADO 2
Find Method 0
Find code help 1
Need help opening ADO recordset. 14

Top