Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About Empty Date.
Message
De
26/04/2004 04:41:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/04/2004 23:57:27
Maltin Lacsina
Angeles Electric Corporation
Angeles, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00898039
Message ID:
00898072
Vues:
11
>I'am using a ADO to access the database and when I use the statement/command to insert a record like this;
>
>oRS = oCon.Execute("Insert Into Sample (Name, BDate, TranDate) Values ('Name', '01/20/1975', '')")
>
>then when I view that record the TranDate has a value of 01/01/1900 how can I control that I want the TranDate to be empty not 01/01/1900.
>
>Thank For Your All Input.

Maltin,
In your database set trandate to accept nulls and do not pass anything or null when it's empty. ie:

oCon.Execute("Insert Into Sample (Name, BDate) Values ('Name', '01/20/1975')")

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform