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,

Choose(dbo_ACTIONS.CATEGORY,"Phone Call","Meeting","Mailing","E-Mail","Task/Other")

AS Category, dbo_TABLEENTRIES.LONGDESCRIPTION

FROM

(dbo_RECORDS INNER JOIN dbo_ACTIONS ON

dbo_RECORDS.ID = dbo_ACTIONS.RECORDS_ID) INNER JOIN

dbo_TABLEENTRIES ON dbo_ACTIONS.STATUS = dbo_TABLEENTRIES.TABLEENTRIESID

WHERE

(((dbo_RECORDS.ID)=280));

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.