PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Date null from VFP

 
 
Marcos G.
Guest
Posts: n/a
 
      8th Jun 2010
Hi i need to extract data from .DBF tables, but when i bring the data and
the column with "date" don't have any data i see the date: 30/12/1899
12:00:00 a.m. in the grid and i don't want to see anythink in that cases,
this is part of my code for that:

cmd.CommandText = "select numcon19 as contenedor, fcarta19 as entrega from
stcont19, IIF(year(fcarta19)<=1999,"",fcarta19) " & _
"left join ('c:\Recocabezut\trafico\Data\stctrl21') AS
REFERENCIA ON STCONT19.REFCIA19=REFERENCIA.REFCIA21 " & _
"WHERE refcia19=(?) " & _
"ORDER BY contenedor INTO CURSOR CONTENEDORES"


but it does'nt work ¿can you help me?

Sorry for my bad english ¿do you know a news in spanish?

Thanks a lot

 
Reply With Quote
 
 
 
 
Mel Weaver
Guest
Posts: n/a
 
      8th Jun 2010
so in the where part of the commandText add ""WHERE refcia19=(?) and
Fcarta19 is not null" &_

"Marcos G." <(E-Mail Removed)> wrote in message
news:6C7A87D2-BC2B-4D37-9B66-(E-Mail Removed)...
> Hi i need to extract data from .DBF tables, but when i bring the data and
> the column with "date" don't have any data i see the date: 30/12/1899
> 12:00:00 a.m. in the grid and i don't want to see anythink in that cases,
> this is part of my code for that:
>
> cmd.CommandText = "select numcon19 as contenedor, fcarta19 as entrega from
> stcont19, IIF(year(fcarta19)<=1999,"",fcarta19) " & _
> "left join ('c:\Recocabezut\trafico\Data\stctrl21') AS
> REFERENCIA ON STCONT19.REFCIA19=REFERENCIA.REFCIA21 " & _
> "WHERE refcia19=(?) " & _
> "ORDER BY contenedor INTO CURSOR CONTENEDORES"
>
>
> but it does'nt work ¿can you help me?
>
> Sorry for my bad english ¿do you know a news in spanish?
>
> Thanks a lot


 
Reply With Quote
 
Marcos G.
Guest
Posts: n/a
 
      8th Jun 2010
No because i want to see that records, but i don't want to se de "Default"
date: 30/12/1899 12:00:00 a.m, i just want to see in blank that column in
the grid

Thanks for your help ¿any other sugestions?

"Mel Weaver" <(E-Mail Removed)> escribió en el mensaje de
noticias:(E-Mail Removed)...
> so in the where part of the commandText add ""WHERE refcia19=(?) and
> Fcarta19 is not null" &_
>
> "Marcos G." <(E-Mail Removed)> wrote in message
> news:6C7A87D2-BC2B-4D37-9B66-(E-Mail Removed)...
>> Hi i need to extract data from .DBF tables, but when i bring the data and
>> the column with "date" don't have any data i see the date: 30/12/1899
>> 12:00:00 a.m. in the grid and i don't want to see anythink in that cases,
>> this is part of my code for that:
>>
>> cmd.CommandText = "select numcon19 as contenedor, fcarta19 as entrega
>> from stcont19, IIF(year(fcarta19)<=1999,"",fcarta19) " & _
>> "left join ('c:\Recocabezut\trafico\Data\stctrl21') AS
>> REFERENCIA ON STCONT19.REFCIA19=REFERENCIA.REFCIA21 " & _
>> "WHERE refcia19=(?) " & _
>> "ORDER BY contenedor INTO CURSOR CONTENEDORES"
>>
>>
>> but it does'nt work ¿can you help me?
>>
>> Sorry for my bad english ¿do you know a news in spanish?
>>
>> Thanks a lot

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select Earliest Date Entered if Date Field is Null Laura C. Microsoft Access Queries 0 13th Feb 2009 12:28 AM
NULL dates show today's date rather than a blank or NULL on form M Skabialka Microsoft VB .NET 5 1st Nov 2006 09:19 PM
NULL dates show today's date rather than a blank or NULL on form M Skabialka Microsoft Dot NET 5 1st Nov 2006 09:19 PM
date field is Null but only if 2 other dates fields are not Null =?Utf-8?B?SmFtaWVN?= Microsoft Access Queries 5 17th Apr 2006 06:14 PM
Unable to store empty/null date in SQL Sever 2000 date/time field via VB.Net Form Henry Microsoft VB .NET 1 8th Mar 2004 06:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:22 PM.