G
Guest
Client is running a select query based on 2 queries. If she enters a specific
report number as criteria, the query will return that record. However, she
wants the query to return all the records - then she gets the error: invalid
operation.
Returns error:
SELECT [PR1 Sum].Output_rpt, [PR1 Sum].Output_date, [PR1 Sum].Output_ID,
[PR1 Sum].Output_Month, [PR1 Sum].Output_Wrapper, [PR1 Sum].UNIT, [PR1
Sum].[Sum Of Output_qty], [PR3 Sum].[Sum Of Mach_Hrs]
FROM [PR1 Sum] INNER JOIN [PR3 Sum] ON [PR1 Sum].Output_rpt = [PR3
Sum].Mach_Rpt;
Does not return error:
SELECT [PR1 Sum].Output_rpt, [PR1 Sum].Output_date, [PR1 Sum].Output_ID,
[PR1 Sum].Output_Month, [PR1 Sum].Output_Wrapper, [PR1 Sum].UNIT, [PR1
Sum].[Sum Of Output_qty], [PR3 Sum].[Sum Of Mach_Hrs]
FROM [PR1 Sum] INNER JOIN [PR3 Sum] ON [PR1 Sum].Output_rpt = [PR3
Sum].Mach_Rpt
WHERE ((([PR1 Sum].Output_rpt)="BB20940"));
Why does the 2nd one return an error?
report number as criteria, the query will return that record. However, she
wants the query to return all the records - then she gets the error: invalid
operation.
Returns error:
SELECT [PR1 Sum].Output_rpt, [PR1 Sum].Output_date, [PR1 Sum].Output_ID,
[PR1 Sum].Output_Month, [PR1 Sum].Output_Wrapper, [PR1 Sum].UNIT, [PR1
Sum].[Sum Of Output_qty], [PR3 Sum].[Sum Of Mach_Hrs]
FROM [PR1 Sum] INNER JOIN [PR3 Sum] ON [PR1 Sum].Output_rpt = [PR3
Sum].Mach_Rpt;
Does not return error:
SELECT [PR1 Sum].Output_rpt, [PR1 Sum].Output_date, [PR1 Sum].Output_ID,
[PR1 Sum].Output_Month, [PR1 Sum].Output_Wrapper, [PR1 Sum].UNIT, [PR1
Sum].[Sum Of Output_qty], [PR3 Sum].[Sum Of Mach_Hrs]
FROM [PR1 Sum] INNER JOIN [PR3 Sum] ON [PR1 Sum].Output_rpt = [PR3
Sum].Mach_Rpt
WHERE ((([PR1 Sum].Output_rpt)="BB20940"));
Why does the 2nd one return an error?