Is it possible to send an entire SQL statement to Crystal Reports? I've created a great SQL statement that shows up the correct records--so I recreate it to my best ability in Crystal, and get the worst gibberish I've ever seen. Here's my statement:
SELECT DISTINCT tblSubSectionDetail.ExpTypeDesc, SSName, CurrentYearBudget
FROM tblSubSectionDetail, tblPurchaseOrder, tblSection, tblSubSection
WHERE tblSubSectionDetail.SCCode = tblSubSection.SCCode
AND tblSubSectionDetail.SSCode = tblSubSection.SSCode
AND tblSubSection.SCCode = tblSection.SCCode
AND tblSubSection.SCCode = tblPurchaseOrder.POSCCode
AND tblSection.SCName = 'Cardiology'
AND CurrentYearBudget > 0
AND tblSubSectionDetail.ExpTypeDesc = 'Salaries Expense'
Thanks for the help!
SELECT DISTINCT tblSubSectionDetail.ExpTypeDesc, SSName, CurrentYearBudget
FROM tblSubSectionDetail, tblPurchaseOrder, tblSection, tblSubSection
WHERE tblSubSectionDetail.SCCode = tblSubSection.SCCode
AND tblSubSectionDetail.SSCode = tblSubSection.SSCode
AND tblSubSection.SCCode = tblSection.SCCode
AND tblSubSection.SCCode = tblPurchaseOrder.POSCCode
AND tblSection.SCName = 'Cardiology'
AND CurrentYearBudget > 0
AND tblSubSectionDetail.ExpTypeDesc = 'Salaries Expense'
Thanks for the help!