L
Lori2836 via AccessMonster.com
Trying to follow a suggestion from someone where I want to show just the
first record for an ITem ID using the first Start Date and I keep getting an
operator error message.......can you please tell me what might be wrong?
This comes from an old thread in here back in 2003.......
SELECT DISTINCTROW [Item ID], [Item Description], [MFG Order #], [Order
Status], [Order Qty], [Balance Due], [Opern Description], [Work Center],
[Start Date], [Due Date], [Fiscal Year], [Fiscal Week]
FROM [18 - Machining Sort] T1
WHERE [Start Date] = (SELECT MAX(Start Date)
FROM [18 - Machining Sort] T2
WHERE T2.[Item ID] = T1.[Item ID]
AND T2.[Due Date] = T1.[Due Date])
ORDER BY Item ID, Due Date
Thanks,
Lori
first record for an ITem ID using the first Start Date and I keep getting an
operator error message.......can you please tell me what might be wrong?
This comes from an old thread in here back in 2003.......
SELECT DISTINCTROW [Item ID], [Item Description], [MFG Order #], [Order
Status], [Order Qty], [Balance Due], [Opern Description], [Work Center],
[Start Date], [Due Date], [Fiscal Year], [Fiscal Week]
FROM [18 - Machining Sort] T1
WHERE [Start Date] = (SELECT MAX(Start Date)
FROM [18 - Machining Sort] T2
WHERE T2.[Item ID] = T1.[Item ID]
AND T2.[Due Date] = T1.[Due Date])
ORDER BY Item ID, Due Date
Thanks,
Lori