private sub form_load()
If Not (GetPur(TOPBILL, Gsys_Read) And GetPur(Bill, Gsys_Read) And GetPur(SUBBILL, Gsys_Read)) Then
Gerr = 16 '没有当前单据的读取权限,程序结束
ShowErr
DoCmd.Close
End
End If
end sub
'该按钮对应'编辑'功能
private sub cmdEdit_click()
If Not (GetPur(SUBBILL, Gsys_Read) And GetPur(SUBBILL, Gsys_Edit)) Then
Gerr = 15 '没有足够的权限执行此操作
ShowErr '显示错误信息
exit sub
End If
end sub