'根据 “系统用户”数据表中的记录数量来自动生成 “用户ID”'
Select Case Rs.RecordCount
Case 0 To 9
Me![用户ID] = "000" & Rs.RecordCount
Case 10 To 99
Me![用户ID] = "00" & Rs.RecordCount
Case 100 To 999
Me![用户ID] = "0" & Rs.RecordCount
Case 1000 To 9999
Me![用户ID] = Rs.RecordCount
End Select
'释放RS数据集分配的空间'
Set Rs = Nothing
Exit_取消_Click:
Exit Sub
Err__取消_Click:
MsgBox Err.Description
Resume Exit_取消_Click
End Sub