G
Guest
I have an Access 2003 form that contains a data entry field named OverAllGPA
and a Text Field named TotalPoints. Each student gets a predetermined amount
of points for the GPA they have. I am trying to get the points associated
with the Student's GPA to appear in the TotalPoints Text field on the form.
I have tried using an IIF statement
=IIf([OverAllGPA]=2.5,1,IIf([OverAllGPA]=2.6,2,IIf([OverAllGPA]=2.7,3,IIf([OverAllGPA]=2.8,4
etc. on this field but since I would have 16 IIFs in this one statement, I
get a message that says my expression is too complex. I decided to create a
table and enter all the GPAs and their related points and then just do a
lookup from the form to determine the amount of points they should recieve
but I cannot figure out the expression to use in the textfield.
Can anyone help?
The tblPoints Table has the following numeric fields:
GPA1
GPA1Points
GPA2
GPA2Points
etc.
Example data in this table would be:
2.5 (GPA1)
1 (GPA1Points)
2.6 (GPA2)
2 (GPA2Points)
Thanks.
and a Text Field named TotalPoints. Each student gets a predetermined amount
of points for the GPA they have. I am trying to get the points associated
with the Student's GPA to appear in the TotalPoints Text field on the form.
I have tried using an IIF statement
=IIf([OverAllGPA]=2.5,1,IIf([OverAllGPA]=2.6,2,IIf([OverAllGPA]=2.7,3,IIf([OverAllGPA]=2.8,4
etc. on this field but since I would have 16 IIFs in this one statement, I
get a message that says my expression is too complex. I decided to create a
table and enter all the GPAs and their related points and then just do a
lookup from the form to determine the amount of points they should recieve
but I cannot figure out the expression to use in the textfield.
Can anyone help?
The tblPoints Table has the following numeric fields:
GPA1
GPA1Points
GPA2
GPA2Points
etc.
Example data in this table would be:
2.5 (GPA1)
1 (GPA1Points)
2.6 (GPA2)
2 (GPA2Points)
Thanks.