Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Boolean SQL on a VFP table?
Message
 
 
À
22/01/2001 11:40:46
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Divers
Thread ID:
00466676
Message ID:
00466930
Vues:
8
>What is wrong with this statement...
>
> Set rsOrders = Server.CreateObject("ADODB.Recordset")
> sSQL = "SELECT * FROM orders WHERE shipped = 'False'"
> rsOrders.open sSQL, dbMain
>
>If I write Response.Write rsOrders( "shipped") it prints False. To "stuff" a boolean variable into the table I have to use 0 for false and -1 for true. I have tried quering for False, 0, .F., F you name it, with and without quotes, but I keep getting an Operator/operand type mismatch error.
>
>Perplexed and truly stumped
>Please HELP!
>zorfox@acceleration.net

WAG, but try:

sSQL = "SELECT * FROM orders WHERE !shipped"

and see if the VFP ODBC driver parses that correctly.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform