recordselection formula woes
From: Gary P (qssoftLESSSPAM_at_mchsi.com)
Date: 08/05/04
- Next message: rikesh: "Recent Date (MAX Date)"
- Previous message: Bill Le May: "Re: Report versioning"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 05 Aug 2004 15:10:03 GMT
I'm using Crystal for vb/net2003 and I've got an Access db table named
tblLact with 3 records - the values for the fields in question are
fldID=129 fldBeginDate= 3/17/2004
fldID=27 fldBeginDate= 3/15/2004
fldID=129 fldBegindate= 4/23/2004
When I do a report on the table with no RecordSelection formula, I get all 3
However when I set the rptdoc.datadefinition.recordselectionformula=
{tblLact.fldBeginDate} IN (Date (1980,01,01) TO Date (2004,08,05)) AND
{tblLact.fldID}=129
I will receive only the first record (3/17/04) and not the third
If I change the 129 to 27 I will receive nothing, though expecting the
second record
If I drop the date part of the string and just have {tblLact.fldID}=129 (or
27) it works as expected.
If I drop the ID part of the string and leave the {tblLact.fldBeginDate} IN
(Date (1980,01,01) TO Date (2004,08,05)) I would expect to get all 3
records but once again only get the first.
What am I missing here? There seems to be something wrong with my IN Date to
Date but I don't see it. Is there some reason I seem to only get the first
matching record? Actually that's not even true when the ID is 27, rec#2
would be the first match, but I get nothing
Any clues? Thanks
Gary
- Next message: rikesh: "Recent Date (MAX Date)"
- Previous message: Bill Le May: "Re: Report versioning"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|