Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OleDB syntax with a Selected date Field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01557578
Message ID:
01557724
Vues:
43
Hi Borislav
=======================================================
string oSel = "Select Myfield1,MyDate from MYTable WHERE MyDate <= ? ";
DateTime dt = DateTime.Now;
oComm.Parameters.Add(new OleDbParameter("?MyDate ", dt));
=======================================================

Still get a message: No value given for one or more required parameters
Beginnig to think that maybe you cannot use parameters with OleDb and Foxpro and a Date Field and maybe I have to change 
 to stringing in everything (and I know..leave it open to Sql Injection etc )
What do you think ?
Have you yourself ever got OLEDB with a Date Parameter to work ?

Regards,
Gerard
>>Hi Borislav.
>>Yes I have seen Ricks link but nowhere do I see an example with a DATE in the parameter
>>Regards,
>>Gerard
>
>
>string oSel = "Select Myfield1,MyDate from MYTable WHERE MyDate <= ? ";
>DateTime dt = DateTime.Now;
>oComm.Parameters.Add(new OleDbParameter("?MyDate ", dt));
>
>
>?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform