For query, you'd need to do it in the query as a calculated field involving
either a subquery or another query.
For form, you'd need to do it in the RecordSource query as a calculated
field involving either a subquery or another query.
--
Ken Snell
<MS ACCESS MVP>