Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search the record
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01155154
Message ID:
01155160
Views:
18
>search the record from whole veriable, if "khubaib" is in verialbe. khubaib khalid, khubaib zia, even"KHUBAIB KHALID" in upper and lower case. i want khubaib
>thanks
>this code is working in set filter to but not in sql
>
>
>WHERE  ( Student.descr=ALLTRIM(Thisform.search.value)and" "$UPPER(descr) )
>
Do you want the record starting from KHUBAIB or anywhere in the string?

If the former, then
lcValue = upper(ALLTRIM(Thisform.search.value)) + ' %'

where upper(Student.Descr) LIKE &lcValue
I would rather construct the whole SQL as a string using textmerge.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform