I've seen some postings on here for creating procedures and modules to calculate the median. In my case I want to see the median of all rates in my table. I am using a fiedl that is data derived from an Expression using an IIf statement. This expression "looks" at other Rate fields in a table and returns the most recent rate. The problem is that the code for the procedure is for a double integer. I am not a programmer and need help figuring this one out.