Skylinefranc Posted May 3, 2010 Posted May 3, 2010 We are trying to find a way to set how much to pay for mileage based on date. Example: anything before May 1st 2010 is 46 cents per mile and anything after that date is 50 cents a mile. I'm thinking that we can use an If function to determine if the date is before or after and then based on which it is pay a certain amount for the mileage. Before we would have to create two seperate mileage reports and manually go through and assign them by date and its honestly a big pain, any help would be greatly appreciated.
comment Posted May 3, 2010 Posted May 3, 2010 This is best done by a lookup, not a calculation. Create a table of Costs with two fields: FromDate and Cost. Define a relationship between Costs and your current table, matching on date. Set the Cost field in your current table to lookup the value from Costs table, copying next lower value if no match.
Skylinefranc Posted May 6, 2010 Author Posted May 6, 2010 Tried doing this with no luck, would you mind providing a quick example?
Skylinefranc Posted May 6, 2010 Author Posted May 6, 2010 Thanks, the example helped a ton, I was able to get into it and see exactly how it is done for future uses as well. Greatly appreciate this.
Recommended Posts
This topic is 5373 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now