Thanks for replying Dale!!
Here is the query:
SELECT ProductTracking.ID AS ProductTracking_ID, ProductTracking.[File
Ref#], ProductTracking.[SERIAL NUMBER], ProductTracking.[FROM CUSTOMER],
ProductTracking.[DATE RECEIVED], ProductTracking.[DATE SHIPPED BACK TO
CUSTOMER], ProductTracking.[END USER RECEIVED DATE], RepairInformation.ID,
RepairInformation.PRODUCT, RepairInformation.[REPAIR TICKET #],
RepairInformation.[DATE SERVICE CLAIM FILED], RepairInformation.[SERVICE
TYPE] AS [RepairInformation_SERVICE TYPE], RepairInformation.STATUS,
RepairInformation.[COMPLETED DATE or ESTIMATED COMPLETED DATE],
RepairInformation.COST, RepairInformation.[INVOICE #], RepairInformation.POC,
RepairInformation.[POC Contact info]
FROM (ProductOptionPeriodRepair INNER JOIN RepairInformation ON
ProductOptionPeriodRepair.ID=RepairInformation.ID) INNER JOIN ProductTracking
ON RepairInformation.ID=ProductTracking.RepairInformation_ID
ORDER BY ProductTracking.[SERIAL NUMBER];
I used the same query for both the main and subform because I thought I had
to in order to get the forms to provide the necessary information.
Basically, the ProductTracking table is where I need to select a [File
Ref#], [FROM CUSTOMER], or a [SERIAL NUMBER]. Then the associated records
from the RepairInformation table would be displayed in the subform. Is there
something that can be done with the above query or can you tell me how to
create it correctly?
Thanks,
Andrew
Dale Fye said:
What does the query look like?
Not sure why you would use the same query on the main form and the subform.
Generally, the main forms recordset would only contain a single record for
each PK value, and the subform would be linked (master/child) on the PK field.
----
HTH
Dale
:
Hello all.
I have created a subform from a query based on 2 tables. The main form is
also based on the same query. I need to select a tracking number on the main
form and have all the corresponding records displayed on the subform. I then
need to use this to display cost totals on the main form. Currently, only one
record is displayed in the subform at a time. Can someone provide some
assistance?
Thanks in advance!!