Ray -
I've said it before and I'll say it again, you guys are
GREAT!I simply replaced:
if Birthdate <> ""
with
If Not @IsBlank(Birthdate) then
(I don't think the "then" is needed; however, it makes it clearer for me).
That, alone
WOIKED! I'm assuming that the <>"" was being ignored and, therefore, the programming was always being executed.
That makes me a bit curious though. If the @isblank is preferred, then why isn't the <>"" simply eliminated from the programming? Or ... is there an appropriate use of <>""
in preference to @isblank and, if so, could you tell me what criteria should be used to determine which command is chosen?
Also, you said that:
Quote:The "or (@month (@date) = @month(Birthdate) and @dom(@date)<@dom(Birthdate))) " line in your code isn't going to do anything.
I thought that it was needed to not just consider the current year vs the birth year but also the month and day as well. Now that I look at it though it seems that there would need to be a "then" portion of the statement (and perhaps an "else" portion, as well). I know that in Q&A I used similar programming so that the age was accurate "to the day." It would add a year to an existing age on the birthday only and not a day before.
Can you suggest how to modify it to accomplish what I want (preferably along the same lines and not using SBasic)?
BY THE WAY, when I went back to my database (after reconciling the DSR file), it was correctly sorted!!!

You asked whether there were any command buttons but I wonder whether that is still important. Yes, I have five or six and will be adding more. The programming for them is executed "on entry" (clicking on the button). Any special reason for asking (other than for a possible programming problem in one of those layout elements, that might have caused the form change)?
Bharat -
I appreciate your suggestion and it might well work; however, I did not try it. Since Ray's suggestion made it much easier to change the programming statements (and there were six of them), I simply used it. Thanks, very much, for helping though. I appreciate all input and learning alternative ways of accomplishing the same goal.