Link to home
Start Free TrialLog in
Avatar of LUIS FREUND
LUIS FREUND

asked on

MAX DATE ON MULTIPLE FIELDS

I have this table called tbl_PO_OPEN and I have 4 date fields that I'm tryint to query against.

I attached both the db and the excel file for the rationale of what the query should be, highligthed in yellow.  

What the goal is to create a query that takes the 4 dates that is less than 10/1/18/18 and the amount associated to each supplier that is less than 10/1/18 for each supplier.
C--Users-lfreund-Desktop-COST-EE.accdb
C--Users-lfreund-Documents-COST-EE.xlsx
ASKER CERTIFIED SOLUTION
Avatar of aikimark
aikimark
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Arana (G.P.)
Arana (G.P.)

why  if 2 records match all dates < 10/1/2018 , one is selected and one is not?
User generated image
Avatar of LUIS FREUND

ASKER

I would have to account for each row so I can add up the total cost for each supplier as well.