You need to know if the horse is a filly or a mare, and the criterion is
that the filly becomes a mare on the date when she turns 3 years old?
If that's the correct rule, you can display her status (which you don't
need to store, by the way, because it is a calculation)
IIf(DateDiff("yyyy",[tblHorse].[DateofBirth],Now())+Int(Format(Now(),"mmdd")<Format([tblHorse].[DateofBirth],"mmdd"))<3,"F","M")
I mention the fact that you don't store this because your prefix "cb -
Sex" implies a combo box, which is not necessary if you are only
DISPLAYING the calculated status. A text box will work just fine.
Bob Vance said:
On My form I am Trying to write a code if the Horse is 3 years old F
changes to M (Text)
If [cbSex] > Year 3 [cbDateof Birth] repalce F with M