J
Joanne
I have 3 tables (I have records in each of them) and I want to create
a query of all fields in all the tables on which to base a report
and/or a form.
When I run the query (SQL statement below) it returns no records at
all. Can't figure out what I am doing wrong. One thing I am
absolutely unsure of is am I supposed to put the primary and foreign
keys from the tables into the query, or will the records stay
synchronized on the reports and/or forms without them being in the
query?
Using MSAccess 2003, WinXP
SELECT tblCourses.Name, tblCourses.Street1, tblCourses.City,
tblCourses.State, tblCourses.Zip, tblCourses.Phone,
tblCourses.WebSite, tblCourses.Picture, tblCourses.In_Yardage,
tblCourses.Out_Yardage, tblHoles.HoleNumber, tblHoles.WhiteTees,
tblHoles.RedTees, tblHoles.[Gold Tees], tblHoles.[Blue Tees],
tblHoles.[Black Tees], tblHoles.Par, tblScores.Date,
tblScores.HoleNum, tblScores.Green, tblScores.Fairway, tblScores.Sand,
tblScores.Water, tblScores.Lost, tblScores.Fringe, tblScores.Approach,
tblScores.Putts, tblScores.ParsMade
FROM (tblCourses INNER JOIN tblScores ON tblCourses.CourseID =
tblScores.CourseID) INNER JOIN tblHoles ON tblCourses.CourseID =
tblHoles.CourseID;
Your help is as always very much appreciated.
Joanne
a query of all fields in all the tables on which to base a report
and/or a form.
When I run the query (SQL statement below) it returns no records at
all. Can't figure out what I am doing wrong. One thing I am
absolutely unsure of is am I supposed to put the primary and foreign
keys from the tables into the query, or will the records stay
synchronized on the reports and/or forms without them being in the
query?
Using MSAccess 2003, WinXP
SELECT tblCourses.Name, tblCourses.Street1, tblCourses.City,
tblCourses.State, tblCourses.Zip, tblCourses.Phone,
tblCourses.WebSite, tblCourses.Picture, tblCourses.In_Yardage,
tblCourses.Out_Yardage, tblHoles.HoleNumber, tblHoles.WhiteTees,
tblHoles.RedTees, tblHoles.[Gold Tees], tblHoles.[Blue Tees],
tblHoles.[Black Tees], tblHoles.Par, tblScores.Date,
tblScores.HoleNum, tblScores.Green, tblScores.Fairway, tblScores.Sand,
tblScores.Water, tblScores.Lost, tblScores.Fringe, tblScores.Approach,
tblScores.Putts, tblScores.ParsMade
FROM (tblCourses INNER JOIN tblScores ON tblCourses.CourseID =
tblScores.CourseID) INNER JOIN tblHoles ON tblCourses.CourseID =
tblHoles.CourseID;
Your help is as always very much appreciated.
Joanne