Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTime parameters
Message
 
 
À
17/05/2011 16:47:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01510912
Message ID:
01510918
Vues:
65
>I need to acccess VFP data from C# code. the table I am accessing has a date field. But C# has DateTime only. How do I go about this?
>Here is a query:
>
>
>SELECT        dinvoice, nftotpaid + nftotdisc + nftotadj + nftotdebt + nfbalance AS Amt
>WHERE        dinvoice BETWEEN ? StartDate AND ? EndDate
>FROM            arinvc
>
>
>BTW, ? mark is not taken either.
>
>What is the correct syntax?
>
>Thanks

Put FROM clause before WHERE. If the above will not work, try
where dInvoice between CAST(?StartDate as Date) and CAST(?EndDate as Date)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform