I have a feeling this is something obvious I'm forgetting, but I want to compare a sales ticket for a given date (from a table) and compare that to the price schedule for that same time period (from a different table).
I have a prompt in the criteria for the ticket date Between [Enter Start Date MM/DD/YYYY]And [Enter End Date MM/DD/YYYY].
So far, so good. I also was able to successfully use the fee schedule to charge the appropriate rate for a given customer * the quantity for that ticket:
Color Fee: IIf([Receipts]![Color#]<27,[Receipts]![Total]*[Fee Schedule]![Color Rate],0)
The problem is setting up different effective date ranges so that it pulls the correct rate for that customer *and* time period. I set up multiple records for a sample customer with an Effective Date and End Date (blank on the most current one). I can get it to reference the most current one if I use Is Null in the criteria for the Fee Schedule End Date, but that's not exactly what I want. That's essentially the same as only having the current rate in the table, and I might want to be able to calculate things historically.
Obviously, a solution would be to just have the fees already calculated and included with the records imported into Access, but thought it might be nice to have a more centralized storehouse of fees over time.