Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / September 2004



Tip: Looking for answers? Try searching our database.

IT WAS LISTVIEW....sorry for the new post...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Piantotardivo - 28 Sep 2004 13:38 GMT
I would like to thank all the people that has helped me in solving my
problems with a list view....
I found it out where my problem was....

It was in the string....

strSQL = "SELECT nome, anno, titolo FROM Dischi WHERE nome LIKE '*" & Text1
& "*'"

even if it seems correct to my eyes....
Infact changing

strSQL = "SELECT nome, anno, titolo  FROM Dischi WHERE nome LIKE '" & Text1
& "'"

it works....

But now how can I find out records filling the textbox with only partial
input
With the first string I can't extract any records even if I write exactly
the record name in the textbox....
Do you know why??????
Jan Hyde - 28 Sep 2004 15:12 GMT
"Piantotardivo" <piantotardivo@adsl.it>'s wild thoughts were
released on Tue, 28 Sep 2004 12:38:51 GMT bearing the
following fruit:

>I would like to thank all the people that has helped me in solving my
>problems with a list view....
[quoted text clipped - 18 lines]
>the record name in the textbox....
>Do you know why??????

Apart from a few exceptions you use % with LIKE and * with
MATCHES

So it looks like your SQL should be

WHERE nom LIKE '%" & Text1.text & "%'"

Jan Hyde (VB MVP)

Signature

What's the difference between a tale of lost cash and a secluded
religious community?
One is a money story, and the other is a monastery

(Lars Hanson)  

[Abolish the TV License - http://www.tvlicensing.biz/]

Piantotardivo - 28 Sep 2004 16:07 GMT
> "Piantotardivo" <piantotardivo@adsl.it>'s wild thoughts were
> released on Tue, 28 Sep 2004 12:38:51 GMT bearing the
[quoted text clipped - 29 lines]
>
> WHERE nom LIKE '%" & Text1.text & "%'"

Thank you very much...
I'm sorry for all the stupid question...but I'm a novice and i prefer NG to
books...
However i've learned a lot of things....
I hope you won't be too bored because of my questions!!!!
Thank you again!
Jan Hyde - 29 Sep 2004 09:10 GMT
"Piantotardivo" <piantotardivo@adsl.it>'s wild thoughts were
released on Tue, 28 Sep 2004 15:07:03 GMT bearing the
following fruit:

>> "Piantotardivo" <piantotardivo@adsl.it>'s wild thoughts were
>> released on Tue, 28 Sep 2004 12:38:51 GMT bearing the
[quoted text clipped - 38 lines]
>I hope you won't be too bored because of my questions!!!!
>Thank you again!

Well if no-one asked any questions then we'd have nothing to
do ;-)

Jan Hyde (VB MVP)

Signature

Did you hear about the self help group for compulsive talkers? It's
called On & On Anon. (Doug Helsel)  

[Abolish the TV License - http://www.tvlicensing.biz/]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.