Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert blank date field to null
Message
 
 
À
04/10/2010 09:52:23
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01483799
Message ID:
01483805
Vues:
34
>This caused the rows with a blank date1 to be entirely NULL while the other rows were OK.
>
>Any other ideas?
>
>Thanks
>

What do you mean here? Also, why do you need Nulls = 'true' in the connection string?

>
>
>>How about:
>>
>>OConn = CREATEOBJECT("ADODB.Connection")
>>OConn.ConnectionString = "provider=vfpoledb.1;data source=c:\\mydata\;Exclusive=false;Nulls=true"
>>OConn.Open
>>
>>cSQL = "select id, name, IIF(EMPTY(date1),  null, date1) AS date1 from mytable WHERE id = myid ORDER BY id"  &&does not work
>>oRS = OConn.Execute (cSQL)
>>oRS.Close
>>OConn.Close
>>
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