Originally Posted by
imintrouble
Hello once again kind people of Microsoft Access Forums!
I am in need help with this current project I have. What it is supposed to do is take the number from four seperate fields in my query, checking them like this
if AGShrs = 0 then
if ASBAhrs = 0 then
Degree = ASBA
else if ASCJhrs = 0 then
Degree = ASCJ
else if AAhrs = 0 then
Degree = AA
else
Degree = Potential
Endif
I understand that this is in no way correct syntax but i haven't done vb in a while so as you can understand, i'm a bit rusty. Now let me explain this formula a bit.
the first thing it needs to check is if the hrs of the AGS field are 0. If they are it then checks both ASBA and then ASCJ. If either are 0, then degree will be equal to the one that is 0. If it isn't but AGS was 0, then degree = AGS. Then it finally checks if AA was 0, making degree AA if it was. Lastly if none were 0, degree needs to be marked as potential. The answers of all of this, what degree is set to equal as in the end of the code, needs to be input into the field which this module will reside.
Thanks!