搬运工1,2,3,4,5设定AfterUpdate事件如下:
Dim n1,n2,n3,n34,n5
n1=0
n2=0
n3=0
n4=0
n5=0
if not isnull(me.搬运工) then n1=1
if not isnull(me.搬运工1) then n2=1
if not isnull(me.搬运工2) then n3=1
if not isnull(me.搬运工3) then n4=1
if not isnull(me.搬运工4) then n5=1
Me.搬运工人数=n1+n2+n3+n4+n5