I have a report that pulls information from 8 tables. The query behind the report generates all of the required information I am looking for. Though when I go to open the report it says that a table could refrer to more than one table listed in the FROM clause of your SQL statement. The only reason I can see this as happening is because I use a query in the query for the report because I use one field multiple times but need different information. To better explain, I input into the report the person who requested the work, and also the person who did the work. Both require the FullName from a related table (That table has a one to many relationship with 2 tables). So I am wondering how to make it so that my report opens. If that means changing the query or if there is another method to achieve getting information to a text box in a report that needs information from two serparate records. Here is the SQL
Code:
SELECT TestRequestTable.TRNumber, WitnessTestingTable.AgencyProjectNumber, WitnessTestingTable.FileNumber, CatalogNumberTable.CatalogNumber, CatalogNumberTable.ProductName, TestingProcedureTable.SpecificNameOfTest, WitnessTestingTable.WitnessAgency, TestRequestTable.DateSubmitted, TestingProcedureTable.LabProcedureNumber, CatalogNumberTable.Manufacturer, ComponentTable.ComponentPartNumber, ComponentTable.ComponentType, FinishedTestRequestTable.ComponentMaterial, FacilityLocations.FacilityLocation, TestRequestTable.SampleDisposal, TestRequestTable.TestCatagory1, TestRequestTable.TestCatagory2, FinishedTestRequestTable.CrossReferences, FinishedTestRequestTable.TestingManHours, FinishedTestRequestTable.ReportSummary, TestRequestTable.PurposeOfTest, FinishedTestRequestTable.ProductDescription, FinishedTestRequestTable.TestProcedure, FinishedTestRequestTable.Observations, FinishedTestRequestTable.Attachments, FinishedTestRequestTable.ResultsDate, ReportPrepNameQuery.FullName, CrouseHindsPersonalTable.FullName
FROM ReportPrepNameQuery, CrouseHindsPersonalTable INNER JOIN ((FacilityLocations INNER JOIN (ComponentTable INNER JOIN (TestingProcedureTable INNER JOIN (CatalogNumberTable INNER JOIN (WitnessTestingTable INNER JOIN TestRequestTable ON WitnessTestingTable.ID = TestRequestTable.ProjectNumber) ON CatalogNumberTable.ID = TestRequestTable.CatalogNumber) ON TestingProcedureTable.ID = TestRequestTable.TypeOfTest) ON ComponentTable.ID = TestRequestTable.ComponentTested) ON FacilityLocations.ID = TestRequestTable.TestLocation) INNER JOIN FinishedTestRequestTable ON TestRequestTable.FinishedRelateField = FinishedTestRequestTable.ID) ON CrouseHindsPersonalTable.ID = TestRequestTable.Requestor;