Hi,
Here is SQL before adding field PhotoETA1:
SELECT [New Table].[TGT ETA (S/S)], [New Table].[Style Number], [New Table].Color, [New Table].Country, [New Table]![I70DOMINT] AS [DOM/INT], [New Table].Factory, [New Table].[Style Description], [New Table]![PSizes] AS [Photo sizes], [New Table].[Photo Qty], [New Table].[Date Photo due\TGT X-Date], [New Table].[Date Photo sent], [New Table].[Photo ETA], [New Table].[Date Photo rec'd], [New Table].Quantity, [New Table].[Number of Photo Rec'd], [New Table].[Expected Lot Completion Date S/S TGT X-Date], [New Table].[Actual Date Sent S/S], [New Table].[HAWB#], [WHP0110 Summary].[Max Of KRHDRC], [New Table].[Rec'd @ Office], [New Table]![Sizes] AS Sizes, [New Table].[Quantity Rec'd], [New Table]![I71CUT#] AS [PO/Cut#], [New Table].[Design Approved?], [WHP0110 Summary].[Max Of KRHDPS], [New Table].[Quantity Complete?], [New Table].Season, [New Table].Comments, [WHP0110 Summary].[Min Of KRHDPS]
FROM [New Table] LEFT JOIN [WHP0110 Summary] ON ([New Table].[I71CUT#] = [WHP0110 Summary].KRHCUT) AND ([New Table].Season = [WHP0110 Summary].WHSEAYR)
WHERE ((([New Table].Season)=[Enter Season]))
ORDER BY [New Table].[TGT ETA (S/S)], [New Table].[Style Number];
And a sample of my data:
Style# TGT ETA (S/S) Max of KRHDPS
E1234 11/10/2003 11/18/2003
J12344 11/18/2003 11/18/2003
J12348 11/18/2003 11/18/2003
Query with new field PhotoETA1 added:
SELECT [New Table].[TGT ETA (S/S)], [New Table].[Style Number], [New Table].Color, [New Table].Country, [New Table]![I70DOMINT] AS [DOM/INT], [New Table].Factory, [New Table].[Style Description], [New Table]![PSizes] AS [Photo sizes], [New Table].[Photo Qty], [New Table].[Date Photo due\TGT X-Date], [New Table].[Date Photo sent], [New Table].[Photo ETA], [New Table].[Date Photo rec'd], [New Table].Quantity, [New Table].[Number of Photo Rec'd], [New Table].[Expected Lot Completion Date S/S TGT X-Date], [New Table].[Actual Date Sent S/S], [New Table].[HAWB#], [WHP0110 Summary].[Max Of KRHDRC], [New Table].[Rec'd @ Office], [New Table]![Sizes] AS Sizes, [New Table].[Quantity Rec'd], [New Table]![I71CUT#] AS [PO/Cut#], [New Table].[Design Approved?], [WHP0110 Summary].[Max Of KRHDPS], [New Table].[Quantity Complete?], [New Table].Season, [New Table].Comments, [WHP0110 Summary].[Min Of KRHDPS], IIf((IsNull([WHP0110 Summary]![Max Of KRHDPS])),[TGT ETA (S/S)],[WHP0110 Summary]![Max Of KRHDPS]) AS [Photo ETA1]
FROM [New Table] LEFT JOIN [WHP0110 Summary] ON ([New Table].[I71CUT#] = [WHP0110 Summary].KRHCUT) AND ([New Table].Season = [WHP0110 Summary].WHSEAYR)
WHERE ((([New Table].Season)=[Enter Season]))
ORDER BY [New Table].[TGT ETA (S/S)], [New Table].[Style Number];
Sample of data with PhotoETA1 date added:
Style# TGT ETA (S/S) Max of KRHDPS Photo ETA1
E1234 11/7/2003 11/4/2003 11/4/2003
J12344 11/7/2003 11/5/2003 11/5/2003
J12348 11/4/2003 11/5/2003 11/5/2003
I didn't expect Max of KRHDPS to change.
WHP0110 Summary query summarizes AS400 data (ODBC)
If you need more info let me know
Thanks, again for taking the time
Colleen