Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Searching setup in a form
Message
From
14/01/2011 12:32:41
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01496112
Message ID:
01496221
Views:
52
SELECT customers
LOCATE
LOCATE FOR ALLTRIM(last_name) == ALLTRIM(thisform.txtSearch.Value)
lcCustID = IIF(FOUND(), customerid, [])

SELECT orders
IF !EMPTY(lcCustID)
LOCATE
LOCATE FOR customerid == lcCustID
ENDIF

or

SELECT * FROM orders WHERE customerid IN ;
(SELECT TOP 1 customerid FROM customers WHERE ALLTRIM(last_name)==ALLTRIM(thisform.txtSearch.Value))


Regards,
Onytoo
Regards,
Ony
Previous
Reply
Map
View

Click here to load this message in the networking platform