Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty date field returns 12/30/1899 with dsnless connect
Message
 
 
To
23/05/2002 16:23:35
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00660756
Message ID:
00660816
Views:
10
That's the way ODBC driver works. See Crystal Reports 8.0 and vfp6 empty dates 12/30/1899 Thread #540115 Message #540476 for explanation.

>lcConnStr="DRIVER={Microsoft Visual FoxPro Driver};" + ;
>"SourceDB=c:\data\myData.dbc;SourceType=DBC;UID=;PWD=;"
>
>lnHandle=SQLSTRINGCONNECT(lcConnStr)
>IF lnHandle>0
> lSuccess=SQLEXEC(lnHandle,"SELECT * FROM myTable ORDER BY RefNo","cMyTable")
>ENDIF
>SELECT cMyTable
>BROWSE
>
>myTable is in myData database, and it has date fields.
>Empty date fields returns with 12/30/1899 date instead of empty.
>Does anybody knows why, or what am I doing wrong? Thank you all!
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform