This forum has been a life saver for me many times. Attached is database that I’m having trouble with. I have a query named QryNetPounds to calculate Net Pounds and Net Tons. This query is based on 2 queries QryHarvestLoadSum and QryRecentTareAverage, which are joined by Date and VehicleID.
When I run QryNetPounds I’m prompted to enter Date of Harvest. There is test data entered for three harvest dates: 03/30/2009, 03/31/2009, and 04/01/2009. There are no results returned for 04/01/2009. It seems QryNetPounds returns results when BOTH dates match in the queries joined by date – QryHarvest Load Sum (Contains Harvest Date) and QryRecentTareAverage (Contains Tare Date).
That makes sense to me. However, what I need to do is get results on 04/01/2009 when there is NOT a matching Tare Date. I’d like it to use the most recent Tare Date entered which is 03/31/2009. I’m not sure how to accomplish this. Thanks in advance for any suggestions.
When I run QryNetPounds I’m prompted to enter Date of Harvest. There is test data entered for three harvest dates: 03/30/2009, 03/31/2009, and 04/01/2009. There are no results returned for 04/01/2009. It seems QryNetPounds returns results when BOTH dates match in the queries joined by date – QryHarvest Load Sum (Contains Harvest Date) and QryRecentTareAverage (Contains Tare Date).
That makes sense to me. However, what I need to do is get results on 04/01/2009 when there is NOT a matching Tare Date. I’d like it to use the most recent Tare Date entered which is 03/31/2009. I’m not sure how to accomplish this. Thanks in advance for any suggestions.