Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending a date value to an ADO recordset
Message
 
À
03/05/2003 12:40:11
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00784142
Message ID:
00785494
Vues:
16
Thanks again Cetin, that's exactly what I was looking for.

Enmanuel

>>>>How can I send a date value to an ADO recordset? For example I got two date variables: date1 and date2 and I want to select only the records between these two dates.
>>>>
>>>>TIA,
>>>>
>>>>Enmanuel
>>>
>>>
>>>oRs.Filter = 'DateField >= #'+;
>>>  	Transform(Dtoc(date1,1),'@R 9999/99/99')+;
>>>  	'# and DateField <= #'+;
>>>  	Transform(Dtoc(date2,1),'@R 9999/99/99')+'#'
>>>
Cetin
>>
>>Thanks Cetin that worked. But how can I pass this value on the select statement instead of the filter property? I've tried passing this same example code but didn't work.
>>
>>Enmanuel
>
>Oh that's easier (got you wrong) :
>
>"select * from myTable "+;
>" where DateField between '"+;
>  Dtoc(date1,1)+"' and '"+Dtoc(date2,1)+"'"
Cetin
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform