Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Searching setup in a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01496112
Message ID:
01496221
Vues:
53
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform