在窗口的AfterLoad事件设置代码:
e.Form.Controls("LabeX").Text = DataTables("表名").Compute("Max(求最大值的列)", "序号 = 某个序号")