Microsoft SQL Query:

SELECT TABLEENTRIES.DESCRIPTION, EA7RECORDS.LASTNAME, EA7RECORDS.MIDDLENAME, EA7RECORDS.FIRSTNAME

FROM EA7STUDENTS

INNER JOIN EA7RECORDS ON EA7STUDENTS.EA7RECORDSID = EA7RECORDS.EA7RECORDSID
INNER JOIN EA7APPLICATIONSENROLLMENTS ON EA7RECORDS.EA7RECORDSID = EA7APPLICATIONSENROLLMENTS.EA7RECORDSID
INNER JOIN TABLEENTRIES ON EA7APPLICATIONSENROLLMENTS.STATUS = TABLEENTRIES.TABLEENTRIESID

WHERE EA7APPLICATIONSENROLLMENTS.ACTIVEENROLLMENT=-1 -- TRUE=-1 FALSE=0

Microsoft Access Query:

SELECT dbo_TABLEENTRIES.DESCRIPTION, dbo_EA7RECORDS.LASTNAME, dbo_EA7RECORDS.MIDDLENAME, dbo_EA7RECORDS.FIRSTNAME FROM ((dbo_EA7STUDENTS INNER JOIN dbo_EA7RECORDS ON dbo_EA7STUDENTS.EA7RECORDSID = dbo_EA7RECORDS.EA7RECORDSID) INNER JOIN dbo_EA7APPLICATIONSENROLLMENTS ON dbo_EA7RECORDS.EA7RECORDSID = dbo_EA7APPLICATIONSENROLLMENTS.EA7RECORDSID) INNER JOIN dbo_TABLEENTRIES ON dbo_EA7APPLICATIONSENROLLMENTS.STATUS = dbo_TABLEENTRIES.TABLEENTRIESID WHERE (((dbo_EA7APPLICATIONSENROLLMENTS.ACTIVEENROLLMENT)=-1));

Disclaimer: Blackbaud provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Structured Query Language and the tools used to create and modify SQL statements and Crystal Reports. Blackbaud Customer Support may help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality.