MS Access newbie created a simple Access database used to assign horses to student riders. Fields are Student's FirstName, LastName, HorseName, LessonType, Instructor's FirstName, LastName and LessonFee. When the admin creates a record she will fill in the Student's Name, HorseName, LessonType, Instructor's Name which are combo boxes that look up the drop down data in their respective tables. The Fee field is manually filled in by the admin based on whatever agreement was made between the student and instructor. All the fields are saved so reports can be run.
Now my client wants to add some "matrix logic" so that the Fee field is auto populated based on the LessonType and Instructor Name fields. For example the Fee field logic would go something like:
If Instructor = "Hanny" and LessonType="Western" populate Fee with $15.00
If Instructor = "Doe" and LessonType="Hunter" populate Fee with $60.00
and the 'If Instructor and LessonType' logic would be quite long as they have many Instructors and many LessonTypes. Could be as much as 30 IF lines.
How would I go about making this happen? I created a mock database trying to use some suggestions an expert on a prior ticket gave me but I could not figure it out so he told me to post a new ticket with a database attached, and here it is. I put some of the IF matrix on the form for reference in a label field.