I am converting our invoicing out of Excel and into Access.
I have 2 tables:
1. Shipping (table has the ship date in ActualShipDate)
2. PPIescalation (has an EscalationFactor that is used to compute the unit price; this EscalationFactor changes yearly on 6/5 and the table holds that date in PriceChangeDate)
In Excel it was set up with Vlookup.
I need this done in a query: find the EscaltionFactor based on the ActualShipDate.
I tried a DLookup, I tried DMin too. I know my issue is that I want an approximate match.
PPIescalation Table
PriceChangeDate EscalationFactor
6/5/14 3.25
6/5/15 3.5
6/5/16 3.75
I need to have the following in my query
Invoice Query
ActualShipDate EscalationFactor
7/1/14 3.25
5/15/15 3.25
9/30/15 3.5
6/4/17 3.75
I tried googling which is where I got DLookup & DMin from.
Any thoughts would be helpful.
Thanks! Robecca
I have 2 tables:
1. Shipping (table has the ship date in ActualShipDate)
2. PPIescalation (has an EscalationFactor that is used to compute the unit price; this EscalationFactor changes yearly on 6/5 and the table holds that date in PriceChangeDate)
In Excel it was set up with Vlookup.
I need this done in a query: find the EscaltionFactor based on the ActualShipDate.
I tried a DLookup, I tried DMin too. I know my issue is that I want an approximate match.
PPIescalation Table
PriceChangeDate EscalationFactor
6/5/14 3.25
6/5/15 3.5
6/5/16 3.75
I need to have the following in my query
Invoice Query
ActualShipDate EscalationFactor
7/1/14 3.25
5/15/15 3.25
9/30/15 3.5
6/4/17 3.75
I tried googling which is where I got DLookup & DMin from.
Any thoughts would be helpful.
Thanks! Robecca