Hello,
I am very new to Access, so I would like to thank you in advance for you help.
I have created 2 Tables in Access 2010. Classes and Students.
The table "Classes" has the following columns "ID, Courses,and Coefficient."
The table "Students" has the following columns "ID,Student,Courses,and Coefficient." "Courses" in this table is a "lookup" from the listed Courses in the table "Classes"
"Coefficient" from both tables is a number.
What I would like to do is update the value of "Coefficient" in the "Students" table once I pick/select the right course for the particular student. This value is coming from "Coefficient" in the table "Classes". From What I read so far, I had to create a form based on "Student" Table and write a code for a AfterUpdate() field/function. Here is the code
Private Sub Courses_AfterUpdate()
Coefficient= DLookup("Coefficient", "Classes", "Courses = '" & Courses & "'")
End Sub
The problem is that the DLookup works fine without giving me errors. However, the form is NOT updating once I choose the right course.
Please help me with this issue,
Thanks