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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports subreport causing report to shut down

Status
Not open for further replies.

kims212

Programmer
Dec 17, 2007
103
CA
Crystal Reports XI

I am trying to run a report in "native" Crystal Reports. This report runs fine under the iAppraise database application for which it was developed.

The problem seems to lie with the subreport which I have extracted and tried to run on its own.

The sub report uses two tables the fields for which are extracted by two commands at the front of the db.

command 1: AnswerData

SELECT dbo.Answers.SessID, dbo.Answers.QGName, dbo.Answers.QG2Name, dbo.Answers.QText, dbo.Answers.QSSeq, dbo.Answers.QSName, dbo.Answers.QQNo, dbo.Answers.QMand, dbo.Answers.ThresholdScore, dbo.Answers.Score, dbo.Answers.Evidence, dbo.Answers.AnsID
FROM dbo.Answers
WHERE (dbo.Answers.QG2Name = N'GMP') AND (dbo.Answers.SessID={?prSessID})
ORDER BY dbo.Answers.QSSeq

commnad 2: NotApplicableAnswers

SELECT dbo.Answers.ThresholdScore AS NAThreshold, dbo.AnswerObject.QIText, dbo.AnswerObject.QIAnswer, dbo.Answers.AnsID
FROM dbo.Answers INNER JOIN
dbo.AnswerObject ON dbo.Answers.AnsID = dbo.AnswerObject.AnsID
WHERE (dbo.AnswerObject.QIText = N'Not Applicable') AND (dbo.AnswerObject.QIAnswer = N'#s#')

The problem seems to be with fields from the second command, NotApplicableAnswers. if I run the report using fields from only AnswerData, the report runs fine but as soon as I add a field from the NotApplicableAnswer table, the report shuts down Crystal Reports.

Any help would be appreciated; I'm quite puzzled - but still very much new to Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top