O.K. Karl,
Here it is. It is from the Query.
SELECT Horses.[Horse's Name], Horses.[Registration Number], Horses.[Date of
Birth], Horses.Sex, Horses.[Inbreeding Coefficient], Horses.Breeder,
Horses.[Achievement Level], [Pedigree Query].Sire.[Horse's Name], [Pedigree
Query].Sire.[Registration Number], [Pedigree Query].Sire.[Other Registration
#], [Pedigree Query].Sire.Title, [Pedigree Query].Dam.[Horse's Name],
[Pedigree Query].Dam.[Registration Number], [Pedigree Query].Dam.[Other
Registration #], [Pedigree Query].Dam.Title, [Pedigree Query].[S
Sire].[Horse's Name], [Pedigree Query].[S Sire].[Registration Number],
[Pedigree Query].[S Sire].[Other Registration #], [Pedigree Query].[S
Sire].Title, [Pedigree Query].[S Dam].[Horse's Name], [Pedigree Query].[S
Dam].[Registration Number], [Pedigree Query].[S Dam].[Other Registration #],
[Pedigree Query].[S Dam].Title, [Pedigree Query].[D Sire].[Horse's Name],
[Pedigree Query].[D Sire].[Registration Number], [Pedigree Query].[D
Sire].[Other Registration #], [Pedigree Query].[D Sire].Title, [Pedigree
Query].[D Dam].[Horse's Name], [Pedigree Query].[D Dam].[Registration
Number], [Pedigree Query].[D Dam].[Other Registration #], [Pedigree Query].[D
Dam].Title, [Pedigree Query].[S S Sire].[Horse's Name], [Pedigree Query].[S S
Sire].[Registration Number], [Pedigree Query].[S S Sire].[Other Registration
#], [Pedigree Query].[S S Sire].Title, [Pedigree Query].[S S Dam].[Horse's
Name], [Pedigree Query].[S S Dam].[Registration Number], [Pedigree Query].[S
S Dam].[Other Registration #], [Pedigree Query].[S S Dam].Title, [Pedigree
Query].[S D Sire].[Horse's Name], [Pedigree Query].[S D Sire].[Registration
Number], [Pedigree Query].[S D Sire].[Other Registration #], [Pedigree
Query].[S D Sire].Title, [Pedigree Query].[S D Dam].[Horse's Name], [Pedigree
Query].[S D Dam].[Registration Number], [Pedigree Query].[S D Dam].[Other
Registration #], [Pedigree Query].[S D Dam].Title, [Pedigree Query].[D S
Sire].[Horse's Name], [Pedigree Query].[D S Sire].[Registration Number],
[Pedigree Query].[D S Sire].[Other Registration #], [Pedigree Query].[D S
Sire].Title, [Pedigree Query].[D S Dam].[Horse's Name], [Pedigree Query].[D S
Dam].[Registration Number], [Pedigree Query].[D S Dam].[Other Registration
#], [Pedigree Query].[D S Dam].Title, [Pedigree Query].[D D Sire].[Horse's
Name], [Pedigree Query].[D D Sire].[Registration Number], [Pedigree Query].[D
D Sire].[Other Registration #], [Pedigree Query].[D D Sire].Title, [Pedigree
Query].[D D Dam].[Horse's Name], [Pedigree Query].[D D Dam].[Registration
Number], [Pedigree Query].[D D Dam].[Other Registration #], [Pedigree
Query].[D D Dam].Title, [Pedigree Query].[S S S Sire].[Horse's Name],
[Pedigree Query].[S S S Sire].[Registration Number], [Pedigree Query].[S S S
Sire].[Other Registration #], [Pedigree Query].[S S S Sire].Title, [Pedigree
Query].[S S S Dam].[Horse's Name], [Pedigree Query].[S S S Dam].[Registration
Number], [Pedigree Query].[S S S Dam].[Other Registration #], [Pedigree
Query].[S S S Dam].Title, [Pedigree Query].[S S D Sire].[Horse's Name],
[Pedigree Query].[S S D Sire].[Registration Number], [Pedigree Query].[S S D
Sire].[Other Registration #], [Pedigree Query].[S S D Sire].Title, [Pedigree
Query].[S S D Dam].[Horse's Name], [Pedigree Query].[S S D Dam].[Registration
Number], [Pedigree Query].[S S D Dam].[Other Registration #], [Pedigree
Query].[S S D Dam].Title, [Pedigree Query].[S D S Sire].[Horse's Name],
[Pedigree Query].[S D S Sire].[Registration Number], [Pedigree Query].[S D S
Sire].[Other Registration #], [Pedigree Query].[S D S Sire].Title, [Pedigree
Query].[S D S Dam].[Horse's Name], [Pedigree Query].[S D S Dam].[Registration
Number], [Pedigree Query].[S D S Dam].[Other Registration #], [Pedigree
Query].[S D S Dam].Title, [Pedigree Query].[S D D Sire].[Horse's Name],
[Pedigree Query].[S D D Sire].[Registration Number], [Pedigree Query].[S D D
Sire].[Other Registration #], [Pedigree Query].[S D D Sire].Title, [Pedigree
Query].[S D D Dam].[Horse's Name], [Pedigree Query].[S D D Dam].[Registration
Number], [Pedigree Query].[S D D Dam].[Other Registration #], [Pedigree
Query].[S D D Dam].Title, [Pedigree Query].[D S S Sire].[Horse's Name],
[Pedigree Query].[D S S Sire].[Registration Number], [Pedigree Query].[D S S
Sire].[Other Registration #], [Pedigree Query].[D S S Sire].Title, [Pedigree
Query].[D S S Dam].[Horse's Name], [Pedigree Query].[D S S Dam].[Registration
Number], [Pedigree Query].[D S S Dam].[Other Registration #], [Pedigree
Query].[D S S Dam].Title, [Pedigree Query].[D S D Sire].[Horse's Name],
[Pedigree Query].[D S D Sire].[Registration Number], [Pedigree Query].[D S D
Sire].[Other Registration #], [Pedigree Query].[D S D Sire].Title, [Pedigree
Query].[D S D Dam].[Horse's Name], [Pedigree Query].[D S D Dam].[Registration
Number], [Pedigree Query].[D S D Dam].[Other Registration #], [Pedigree
Query].[D S D Dam].Title, [Pedigree Query].[D D S Sire].[Horse's Name],
[Pedigree Query].[D D S Sire].[Registration Number], [Pedigree Query].[D D S
Sire].[Other Registration #], [Pedigree Query].[D D S Sire].Title, [Pedigree
Query].[D D S Dam].[Horse's Name], [Pedigree Query].[D D S Dam].[Registration
Number], [Pedigree Query].[D D S Dam].[Other Registration #], [Pedigree
Query].[D D S Dam].Title, [Pedigree Query].[D D D Sire].[Horse's Name],
[Pedigree Query].[D D D Sire].[Registration Number], [Pedigree Query].[D D D
Sire].[Other Registration #], [Pedigree Query].[D D D Sire].Title, [Pedigree
Query].[D D D Dam].[Horse's Name], [Pedigree Query].[D D D Dam].[Registration
Number], [Pedigree Query].[D D D Dam].[Other Registration #], [Pedigree
Query].[D D D Dam].Title, Horses.[Microchip #], Horses.[Tongue Tattoo],
Horses.Color, Horses.Markings, Members.[First Name], Members.[Middle
Initial], Members.[Last Name], Members.City, Members.State
FROM (Members INNER JOIN Horses ON Members.[Membership Number] =
Horses.[Owner's membership #]) INNER JOIN [Pedigree Query] ON Horses.[Horse
ID] = [Pedigree Query].[Horse ID]
WHERE (((Horses.[Registration Type])="Registered") AND
((Horses.Breed)="Friesian"))
ORDER BY Horses.[Horse's Name];
Thank You,
Honey
KARL DEWEY said:
Open your report in design view, Click on menu VIEW - Properties. See what
the Record Source says. If it is a SELECT statement that is the SQL. Copy
and paste in a post.
If it has the name of a query then open that query in design view, click on
menu VIEW - SQL View, highlight all, copy, and paste in a post.
--
KARL DEWEY
Build a little - Test a little
:
The SQL from the Query? Or you will have to tell me where it is on the report.
Thanks, Honey
:
Post the FROM clause of your SQL statement. Better still post the complete
SQL.
--
KARL DEWEY
Build a little - Test a little
:
I have to track 4 generations of pedigree for horses. I created a pedigree
query using self joins by copying the Horses table and joining the sire and
dam id fields to the Horse ID field in the copied tables. I have changed the
name of the copied tables and everything seems to work just fine. I created
another query to include all of the other horses's information (Micorchip # ,
date of birth, color and markings, etc.) and the owners information uning
the horses table, the owners table and the pedigree query. When I run this
query, it seems fine. In datasheet view, all the info is filled in. I would
like to create a report from this query that I can customize to create the
Registration papers. When I run this report, I get this message: The
specified field 'Horses.[Horse's Name]' could refer to more than one table
listed in the FROM clause of your SQL statement. Please help me get around
this problem. I am using Access 2000. Thank You, Honey.