P
Pascoe via AccessMonster.com
Hi there,
I have a Report which is based on two tables.
I have a query set up within the Record Source of the Report to return values
to the report. In the Record Source Query Tools I have set up the query to
only accept certain values. The SQL is here:
SELECT [Outstanding Actions].*, [Outstanding Actions].[Date Finished],
Tenants.[First Name], Tenants.[Last Name], Tenants.[Mobile Number],
[Outstanding Actions].Owner, [Outstanding Actions].[Job Date]
FROM Tenants INNER JOIN [Outstanding Actions] ON Tenants.ID = [Outstanding
Actions].[Reported By]
WHERE ((([Outstanding Actions].[Date Finished]) Is Null)) OR ((([Outstanding
Actions].[Date Finished]) Is Null) AND (([Outstanding Actions].Owner)=[Forms]!
[Job Lists Form]![Owner Choice]) AND (([Outstanding Actions].[Job Date])=
[Forms]![Job Lists Form]![Job Date Choice]));
However, the report does not display the information I want, it appears to
display everything, not just what I have "only" asked to see. When I look at
the Table View of the query, there are three fields I am unfamiliar with,
Field0, Field1 and Field2. I presume two fields I have put limitations on
included here, Field1 is populated with "Maciej" which is the limitation on
[Owner Choice], however the [Job Date] is neither present, nor populated in
Field2 or Field0, although in the original table it is populated.
I think this is something to do with the relationships, but I can't seem to
spot where I have messed up.
Your help will be appreciated!
Thanks.
Russell.
I have a Report which is based on two tables.
I have a query set up within the Record Source of the Report to return values
to the report. In the Record Source Query Tools I have set up the query to
only accept certain values. The SQL is here:
SELECT [Outstanding Actions].*, [Outstanding Actions].[Date Finished],
Tenants.[First Name], Tenants.[Last Name], Tenants.[Mobile Number],
[Outstanding Actions].Owner, [Outstanding Actions].[Job Date]
FROM Tenants INNER JOIN [Outstanding Actions] ON Tenants.ID = [Outstanding
Actions].[Reported By]
WHERE ((([Outstanding Actions].[Date Finished]) Is Null)) OR ((([Outstanding
Actions].[Date Finished]) Is Null) AND (([Outstanding Actions].Owner)=[Forms]!
[Job Lists Form]![Owner Choice]) AND (([Outstanding Actions].[Job Date])=
[Forms]![Job Lists Form]![Job Date Choice]));
However, the report does not display the information I want, it appears to
display everything, not just what I have "only" asked to see. When I look at
the Table View of the query, there are three fields I am unfamiliar with,
Field0, Field1 and Field2. I presume two fields I have put limitations on
included here, Field1 is populated with "Maciej" which is the limitation on
[Owner Choice], however the [Job Date] is neither present, nor populated in
Field2 or Field0, although in the original table it is populated.
I think this is something to do with the relationships, but I can't seem to
spot where I have messed up.
Your help will be appreciated!
Thanks.
Russell.