下面是afterload中的一段代码,我测试了四个时间点。#1与#2之间花了3.5秒(见附图)。我已经用 [工单编号] = '' 指示不载入数据了,应该很快啊。tables("生产工单")是一个父表,它有6个子表,会有影响吗?
With Tables("生产工单")
Functions.Execute("RecordTime","#1",False)
.Filter = "[工单编号] = ''"
.Sort="缓冲状态 DESC"
Functions.Execute("RecordTime","#2",False)
.SetHeaderRowHeight(20,60)
.Cols("缓冲状态").AllowEdit = False
.Cols("工单编号").AllowEdit = False
.Cols("款色").AllowEdit = False
Functions.Execute("RecordTime","#3",False)
.Cols("承诺交期").AllowEdit = False
.Cols("虚拟交期").AllowEdit = False
.Cols("总量").AllowEdit = False
Functions.Execute("RecordTime","#4",False)
End With
此主题相关图片如下:time.png
