View Full Version : Problem skipping field based on Age field


russi
12-04-2000, 11:29 AM
I have a field called AgeCalculation bound to AgeAtApplication. AgeCalculation figures the age based on date of application and date of birth. AgeAtApplication gets this value and it is stored in the Client Table.
It is of the number type.

I am trying to do an OnExit code where if the age is less than 22, the cursor will skip a field.

I have tried:
If Me!AgeAtApplication < 22 then
LastGradeDone.SetFocus
End if

BUT, the field is not skipped.

Any ideas?
If I neewd to clarify something, please let me know.

Thanks.

SomeGuy
12-04-2000, 12:54 PM
Try it as an AfterUpdate event

russi
12-05-2000, 04:50 AM
Thanks. It worked!