I have a form created with a Subform on it, the main form displays a Code, then the Subform displays an associated fee for different fee lists for that code. The subform is based on a table called Fee Schedules. In that table I have the fields, Code, Fee List, Fee, Discount, EffectiveDate. There are multiple records for each code because there are different Fee Lists where the Code can have different Fees. So the continuous form shows the fee in each fee list.
What I want is for the user to be able to enter a Date on the main form, and it will only show the fees that cover that date. Since next year, new fees will be entered to that table with new effective dates I won't want to show all the fees for that code. I only want to show the Fees that are effective at the date the user enters. So if the user enters 6/30/09, it needs to look back and find the records in the table that match that code, and have the most current effective date? Any suggestions on how I can do this? Thanks.
What I want is for the user to be able to enter a Date on the main form, and it will only show the fees that cover that date. Since next year, new fees will be entered to that table with new effective dates I won't want to show all the fees for that code. I only want to show the Fees that are effective at the date the user enters. So if the user enters 6/30/09, it needs to look back and find the records in the table that match that code, and have the most current effective date? Any suggestions on how I can do this? Thanks.