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


SELECT

dbo_EA7RECORDS.FIRSTNAME, dbo_EA7RECORDS.LASTNAME,

dbo_EA7RECORDMEDICAL.PHYSICIANNAME, dbo_ADDRESS.ADDRESSBLOCK,

dbo_ADDRESS.CITY, dbo_ADDRESS.STATE,

dbo_TABLEENTRIES.DESCRIPTION, dbo_ADDRESSPHONES.NUM

FROM

(((dbo_EA7RECORDS INNER JOIN dbo_EA7RECORDMEDICAL ON

dbo_EA7RECORDS.EA7RECORDSID = dbo_EA7RECORDMEDICAL.EA7RECORDSID)

INNER JOIN dbo_ADDRESS ON

dbo_EA7RECORDMEDICAL.ADDRESSID = dbo_ADDRESS.ADDRESSID)

INNER JOIN dbo_ADDRESSPHONES ON

dbo_ADDRESS.ADDRESSID = dbo_ADDRESSPHONES.PARENTID) INNER JOIN

dbo_TABLEENTRIES ON

dbo_ADDRESSPHONES.PHONETYPE = dbo_TABLEENTRIES.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.