Welcome, Guest. Please Login.
05/09/24 at 20:00:03
News:
Home Help Search Login


Pages: 1
Send Topic Print
How to find date 00/00/00 (Read 1190 times)
David Waldmann
Active Member
*****


Live to work, or
work to live?

Posts: 1924
Gender: male
How to find date 00/00/00
03/16/05 at 14:14:26
 
I am trying to get a report that shows CMACCT records where there is no date entry. It shows in CM-A as 00/00/00, but when I select Date (0,0,0) I don't find any records at all. I tried using > Date (1980,01,01) and that didn't pull any up either. Any suggestions?
Back to top
 
 

David N Waldmann
President
Vermont Hardwoods
Chester, VT

Evo-ERP, 5 user
IST Build: 3/4/19, patched 04/30/19
Pervasive v11.31
Server 2012 / Win10 x64
Crystal Reports v11
Email WWW   IP Logged
Kelloggs
Active Member
*****


Do crazy people know
they are crazy?

Posts: 785
Gender: male
Re: How to find date 00/00/00
Reply #1 - 03/16/05 at 15:24:33
 
There is not such a thing as '00/00/00'  
Also, Date fields on Pervasive are not Null/Empty  
To be honest no idea what they are  
 
I suggest you to use something like this to query Pervasive and download it to either MS Access or MS Excel  
 
SELECT  
MTWO_WIP_WOPRE AS WOPRE,  
MTWO_WIP_AFIN AS AFIN,  
SIGN (WEEK(MTWO_WIP_AFIN)) as MyNull  
FROM "WORKORD"  
 
There the column MyNull becomes a null value aka '00/00/00'  
 
ciao,  
 
Kelloggs
Back to top
 
 

Evo ERP - 35 Users
Dumped MS Access like a hot potato (VB.Net rules!!!)
Email WWW   IP Logged
aricon
Active Member
*****


Systems
Consulting-See
website for
products!

Posts: 1283
Gender: male
Re: How to find date 00/00/00
Reply #2 - 03/16/05 at 15:24:47
 
I would suggest using Access and an expression in the query to convert the values to a string value. That should be able to be reported on.
Back to top
 
 

Sincerely,

Lorne Rogers
President
Aria Consulting & Implementers Ltd.
Phone: (780) 471-1430
Fax: (780) 471-4918
E-mail: lrogers@ariaconsulting.net
Email WWW   IP Logged
kevind
Active Member
*****


I was more than
willing to
"pony up",
how b'out U?

Posts: 639
Gender: male
Re: How to find date 00/00/00
Reply #3 - 03/16/05 at 17:01:35
 
This SQL will return all rows that do not have a valid date:
 
SELECT "BKCMACCT"."BKCM_ACCT_START", "BKCMACCT"."BKCM_ACCT_CODE"
FROM "BKCMACCT"
WHERE "BKCMACCT"."BKCM_ACCT_START" not in  
(SELECT "BKCMACCT"."BKCM_ACCT_START"
FROM "BKCMACCT"
WHERE ("BKCMACCT"."BKCM_ACCT_START" > '1980-01-01'))
 
This uses a sub-query to create a list of rows that have a date.  by selecting all rows that are NOT IN this sub-query,
only the rows that have no date are returned.
 
This SQL could be used with Access or Crystal.
Back to top
 
 

Kevin Damke
Spectronics Corporation
ISTECH 2004.1 7/26/13 SP1 - 20 user
Evo-ERP Build 7/25/13 T7 -7i R6 - 3 user
(Prev version was 2004.1 10/24/12)
(All Patches Installed as of 7/26/13)
Pervasive 2000i SP4 - Crystal Reports V10
Email WWW   IP Logged
aricon
Active Member
*****


Systems
Consulting-See
website for
products!

Posts: 1283
Gender: male
Re: How to find date 00/00/00
Reply #4 - 03/16/05 at 17:04:58
 
Kevin,
 
I like it! Reverse selection....good idea!
Back to top
 
 

Sincerely,

Lorne Rogers
President
Aria Consulting & Implementers Ltd.
Phone: (780) 471-1430
Fax: (780) 471-4918
E-mail: lrogers@ariaconsulting.net
Email WWW   IP Logged
David Waldmann
Active Member
*****


Live to work, or
work to live?

Posts: 1924
Gender: male
Re: How to find date 00/00/00
Reply #5 - 03/17/05 at 09:33:41
 
Well, thanks for what I guess is a great idea, but I have to reveal my ignorance of SQL. I tried fooling around with it for a while and couldn't get anywhere, except to prove that a little knowledge can be a dangerous thing. I ended up just sorting the records by start date, and all the ones that were blank showed up at the beginning of the report. It gave me what I needed even if it is crude.
Back to top
 
 

David N Waldmann
President
Vermont Hardwoods
Chester, VT

Evo-ERP, 5 user
IST Build: 3/4/19, patched 04/30/19
Pervasive v11.31
Server 2012 / Win10 x64
Crystal Reports v11
Email WWW   IP Logged
kevind
Active Member
*****


I was more than
willing to
"pony up",
how b'out U?

Posts: 639
Gender: male
Re: How to find date 00/00/00
Reply #6 - 03/17/05 at 16:24:46
 
That is another perfectly acceptable way!!  Cheesy
Back to top
 
 

Kevin Damke
Spectronics Corporation
ISTECH 2004.1 7/26/13 SP1 - 20 user
Evo-ERP Build 7/25/13 T7 -7i R6 - 3 user
(Prev version was 2004.1 10/24/12)
(All Patches Installed as of 7/26/13)
Pervasive 2000i SP4 - Crystal Reports V10
Email WWW   IP Logged
Pages: 1
Send Topic Print