Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About Empty Date.
Message
From
26/04/2004 04:41:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/04/2004 23:57:27
Maltin Lacsina
Angeles Electric Corporation
Angeles, Philippines
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00898039
Message ID:
00898072
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform