Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports Access-SQL conversion THEN rpt problems

Status
Not open for further replies.

SiliconeFirefighter

IS-IT--Management
Jan 5, 2005
6
US
If you can help me, I'd appreciate it.
I had a crystal reports (9) rpt working just fine until I converted the db's from Access to SQL Server, now my formula which worked in the Access:
not {tripnumbercust.bPosted} and
{TripResources.ResourceType} = "O" and
{TripNumber.dTripFinishDate} in (?)ReportStartDate} to {?ReportEndDate}

continually returns "a boolean is required here" in the place of "tripnumbercust.bPosted". bPosted is a true or false (1, or 0) field in the db.
Any ideas? I am nearing the end of my rope, and I am at the end of my knowledge.
 
Just off the top of my head, you can try changing the criteria to this:

not ({tripnumbercust.bPosted}) and
{TripResources.ResourceType} = "O" and
{TripNumber.dTripFinishDate} in {?ReportStartDate} to {?ReportEndDate}

~Brian
 
Thanks, Brian, I appreciate it, but I tried that, and to no avail, I still get the same err. I even tried changing the formula to the following:
({tripnumbercust.bPosted}<> 1 and
{TripResources.ResourceType} = "O" and
{TripNumber.dTripFinishDate} in
{?ReportStartDate} to {?ReportEndDate}

And this returned a null value. Any other ideas?
 
In the formula editor, highlight the bPosted field in the Report Fields list, and choose Browse Data.
A dialog box should open and give you some unique values it found, and also what the data type is.
Please post the datatype and the some sample data from the list

~Brian
 
does this work:

{tripnumbercust.bPosted} <> 1 and
{TripResources.ResourceType} = "O" and
{TripNumber.dTripFinishDate} in
{?ReportStartDate} to {?ReportEndDate}

I removed a leading parenthesis which may have just been a typo.

~Brian
 
Thanks Brian, that last one did it, you are de man! I'd buy you a beer if'n I could.
 
Glad I could help right the ship. Where are you so I can get a free beer?

~Brian
 
I travel around quite a bit but I haven't been there yet.

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top