Note: This code is written and intended for use in Microsoft Access and will not work in the SQL Server Query Analyzer.



SELECT

dbo_RECORDS.FIRST_NAME, dbo_RECORDS.LAST_NAME, dbo_RECORDS.ORG_NAME,

dbo_MembershipTransaction.ExpiresOn, dbo_TABLEENTRIES.LONGDESCRIPTION AS Category,

dbo_TABLEENTRIES_1.LONGDESCRIPTION AS Program

FROM

((((dbo_RECORDS INNER JOIN dbo_Member ON dbo_RECORDS.ID = dbo_Member.ConstitID)

INNER JOIN dbo_MembershipTransaction ON dbo_Member.ID = dbo_MembershipTransaction.MembershipID)

INNER JOIN dbo_MembershipCategory ON dbo_MembershipTransaction.Category = dbo_MembershipCategory.MembershipCategoryID)

INNER JOIN dbo_TABLEENTRIES ON dbo_MembershipCategory.CategoryID = dbo_TABLEENTRIES.TABLEENTRIESID)

INNER JOIN dbo_TABLEENTRIES AS dbo_TABLEENTRIES_1 ON dbo_MembershipTransaction.Program = dbo_TABLEENTRIES_1.TABLEENTRIESID;
 

 

Disclaimer: We provide 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. Our 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.