Ah, nice to know that you found the reason.
It's not ADO.NET but Jet OLE DB provider which uses '%' as wildcard
character (it is per standard, similarly as SQL server uses it). Access UI
accepts *'s as wildcards but Jet provider does not.
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"jonefer" <> wrote in message
news:810CEFA9-6F63-428A-8C82-...
>I finally discovered what it is!
> Something that works in Access but doesn't work in ADO.NET is the '*' for
> like.
>
> Once I changed it to a '%' everything was fine.
>
> Thanks for all your troubleshooting.
>
> "addup" wrote:
>
>> The Rows: 0 indicates that everything else worked fine, It's the SQL
>> query that returned no rows.
>>
>> If you can copy-paste the query into access, and it works, then I'm at
>> a loss
>>
>> The ONLY thing that comes to mind - - - >
>> remember that what you see in the browser as me.lblSQL.Text may not be
>> the actual contents of me.lblSQL.Text because the browser display
>> ignores whitespace.
>>
>> so, View|Source and copy-paste the query from there into access
>>
>>