Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT statement not working
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00787530
Message ID:
00787553
Vues:
17
>I am trying to look for a specific record using SPT but the following doesn't seem to work, it gives me all the records. I want parameter "g" to work. I am writing this statement wrong? I am trying to retrieve this from access database.
	g = '444-44-4444'
	lcSql = " Select *" ;
	      + "  FROM UDFields" ;
	      + "  where UD.SSNo = (g)" ;

	lnRes = SQLEXEC( .nCon, lcSql, "lcresults" )


You can try with this code.
	g = '444-44-4444'
	lcSql = " Select *" ;
	      + "  FROM UDFields" ;
	      + "  where UD.SSNo = ?g" 
       lnRes = SQLEXEC( .nCon, lcSql, "lcresults" )
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform