troubleshooting Question

Populate a MS Access field based on contents of 2 other fields.

Avatar of bobrossi56
bobrossi56 asked on
DatabasesMicrosoft Access
5 Comments1 Solution129 ViewsLast Modified:
MS Access newbie that created a simple Access 2007 database used to assign horses to student riders. Fields are Date, StudentName, HorseName, LessonType, Instructor and Fee. When the admin creates a record she will fill in the date, the StudentName, HorseName, LessonType, Instructor 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 Intructor fields. For example the Fee field logic would go something like:
If Instructor = "Ann" and LessonType="30 Min" populate Fee with $15.00
If Instructor = "Kate" and LessonType="1 hour" 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?
Thx Experts...BobR
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros