Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT statement not working
Message
From
12/05/2003 19:40:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00787530
Message ID:
00787553
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform