Hi,
I would try:
SELECT [Service Calls].[Policy Number], Remarks.[Policy Number],
Remarks.[Account Name], Remarks.Remarks, Remarks.[Date Remarks Entered],
Remarks.[Assigned Consultant], [Service Calls].[Assigned Consultant],
[Service Calls].[Policy Number], [Service Calls].[Date Written Report Sent],
[Service Calls].[Date of Survey], [Service Calls].Comments, [Service
Calls].[Location Servicing Division]
FROM Remarks INNER JOIN [Service Calls] ON Remarks.[Policy Number]
=[Service Calls].[Policy Number]
and if that still shows duplicated rows:
SELECT DISTINCT [Service Calls].[Policy Number], Remarks.[Policy Number],
Remarks.[Account Name], Remarks.Remarks, Remarks.[Date Remarks Entered],
Remarks.[Assigned Consultant], [Service Calls].[Assigned Consultant],
[Service Calls].[Policy Number], [Service Calls].[Date Written Report Sent],
[Service Calls].[Date of Survey], [Service Calls].Comments, [Service
Calls].[Location Servicing Division]
FROM Remarks INNER JOIN [Service Calls] ON Remarks.[Policy Number]
=[Service Calls].[Policy Number]
Note that with the inner join you can only have duplicated rows if Policy
Number is itself duplicated in one of the table... You can try to eliminate
the duplication right at that source.
Hoping it may help,
Vanderghast, Access MVP
bdehning said:
I did take out the join property and got all to show but now I end up
with
a duplicate issue again and the entries show up multiple times based on my
table and forms relationships.
What is the best way to exclude the duplicates in this case?
Here the current SQL
SELECT DISTINCTROW [Service Calls].[Policy Number], Remarks.[Policy
Number], Remarks.[Account Name], Remarks.Remarks, Remarks.[Date Remarks
Entered], Remarks.[Assigned Consultant], [Service Calls].[Assigned
Consultant], [Service Calls].[Policy Number], [Service Calls].[Date Written
Report Sent], [Service Calls].[Date of Survey], [Service Calls].Comments,
[Service Calls].[Location Servicing Division]
FROM Remarks, [Service Calls];
--
Brian
:
Hi,
Bring the two tables in the query designer. Drag and drop the PolicyNumber
of one table over the same field, of the other table. Drag the desired
fields, from the desired tables, in the column grid. Use that query as
source for your report. That's should be all you have to do.
Hoping it may help,
Vanderghast, Access MVP
I have a query 'Combo' with fields [Account Name],[Policy
Number],[Remarks],[Date Remarks Entered],[Auto Number], and[Assigned
Consultant] This query is based on table called 'Remarks'
I would like to bring above query together with another query "Service
Calls QA" with fields [Account Name],[Policy Number],[Assigned
Consultant],[Date of Survey],[Date Written Report Sent],[Comments] and
[Location Servicing Division] which is based on table called 'Service
Calls'.
Policy Number is the child field linking the 2 tables.
How would I bring together these 2 queries so I could eventually
use
the
results in a report to show [Comments] and [Remarks] sorted by a date.
Comments are kept by the [Date Written Report Sent] and Remarks are dated by
[Date Remarks Entered.
Basically need the records from both to be in one query don't I.