Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert with a date
Message
From
31/05/2006 16:24:21
 
 
To
31/05/2006 14:36:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01126253
Message ID:
01126312
Views:
21
>i cannot use this way. because i have a invoice table in foxpro. each time that a user save an invoice , i save it in the foxpro and i make a copy in my sql server table with a insert or an update ( i dont transfert all fields ) . In my vfp table i have a record name Voided_dte ( a date ) but it always empty except if the invoice is voided. So 98 % of the time this record is empty. So when i do the update or insert it put 01/01/1901 in my sql server. How can i put null or something else

Use EMPTY() function inside your tranlation of values:
<<IIF(EMPTY(yourdateval),null,yourdateval)>>
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform