Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Operator/Operand type mismatch error.
Message
De
04/04/1997 17:16:27
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
 
À
04/04/1997 16:50:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00027068
Message ID:
00027074
Vues:
31
>>>The following statement works fine in Microsoft Query (accessing a SQL Server database):
>>>
>>>SELECT claim_number FROM DEDUCTIONS WHERE voucher_date=04/09/97
>>>
>>>It produces an Operator/Operand type mismatch error in VFP 5.0.
>>>
>>>The voucher_date field is type DateTime on the SQL Server.
>>>
>>>Any ideas?
>>>
>>>Jeff
>>
>>This should work if voucher_data is Date field:
>>>SELECT claim_number FROM DEDUCTIONS WHERE voucher_date={04/09/97}
>
>I am sorry: didn't read the question carefully. If type is DateTime the command should look:
>SELECT claim_number FROM DEDUCTIONS WHERE TTOD(voucher_date)={04/09/97}

Make sure you have an index on TTOD(voucher_date) to enable Rushmore
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform